home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os9 / 1409 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.8 KB

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!rh2y+
  2. From: rh2y+@andrew.cmu.edu (Russell E. Hoffman, II)
  3. Newsgroups: comp.os.os9
  4. Subject: Re: Information on OSK
  5. Message-ID: <EeyxRFm00WB4Nh9moE@andrew.cmu.edu>
  6. Date: 7 Nov 92 04:48:49 GMT
  7. Article-I.D.: andrew.EeyxRFm00WB4Nh9moE
  8. Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  9. Lines: 31
  10. In-Reply-To: <1992Nov7.060210.7210@mlb.semi.harris.com>
  11.  
  12. Excerpts from netnews.comp.os.os9: 7-Nov-92 Re: Information on OSK by
  13. ferguson ct 71078@x102a. 
  14. > I tinkered with the bourne shell for a while (and gave up) and the
  15. > following is from memory.  First of all, the command line editing did
  16. > not work completely unless 'sh' was the login shell.  When executed as
  17. > a subshell to a 'shell' parent, only a few of the command line editing
  18. > commands worked.  Command history did not work at all unless 'sh' was
  19. > the login shell.
  20.  
  21. Not so. If you have a .profile file in your home directory (specified by the
  22. environment variable $HOME), containing the single line
  23.  
  24. history 40
  25.  
  26. (or some other integer number of lines of history to save)
  27.  
  28. then sh will read the .profile file and start history up whenever your run sh.
  29. If you look in the TOP stuff, there is a help file on sh, but I think
  30. it's in a wierd place, like in the CMDS directory.
  31.  
  32. Hope that helps,
  33. Russell Hoffman                 | 1970 Split-Bumper Camaro SS
  34. rh2y+@andrew.cmu.edu            | 406 Small Block   13.5:1 CR 
  35. Carnegie Mellon University      | Tunnel Ram 2x650cfm 4bbl    STREET DRIVEN
  36. ---------------------------------------------------------------------------
  37.  
  38. -rwx        1 joe_user                   806 May  1 23:38 file
  39.  
  40. r - indicates you can look at the file
  41. w - indicates file can be hosed
  42. x - indicates file contains bugs
  43.