home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3617 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.6 KB  |  54 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!ftpbox!motsrd!white!sapphire.rtsg.mot.com!turquoise!ahlenius
  3. From: ahlenius@rtsg.mot.com (Mark Ahlenius)
  4. Subject: Problem with ksh & history file
  5. Message-ID: <ahlenius.714765621@turquoise>
  6. Summary: Problem with ksh in several xterm windows with unique history files
  7. Keywords: ksh histfile
  8. Sender: news@rtsg.mot.com
  9. Nntp-Posting-Host: turquoise
  10. Organization: Motorola Inc., Cellular Infrastructure Group
  11. Date: Tue, 25 Aug 1992 18:00:21 GMT
  12. Lines: 40
  13.  
  14. I am having a problem still with ksh on our Sys VR3 machine
  15. (Motorola 88k Delta box). The version of ksh we are running is
  16. 11/16/88g.
  17.  
  18. I have it set up via my .kshrc file to have separate history files
  19. for each xterminal window I have open.
  20.  
  21. Because I log into various machines, I use the machine name and
  22. the last couple of characters from the tty name as the history file
  23. name.
  24.  
  25. Thus I have:
  26.  
  27. term=$(tty)
  28. MACHINE=$(hostname)
  29. HISTFILE=${HOME}./$MACHINE${term#/dev/tty}
  30. export MACHINE HISTFILE
  31.  
  32. ...
  33.  
  34. The problem is that this works fine for a while, then all of a sudden,
  35. I either cannot recall anything from the history buffer, or the history
  36. buffers for the two (or more) xterm windows are the same.  The later case
  37. being that I will recall commands typed in the other xterm window, instead
  38. of the ones typed in the same window.
  39.  
  40. Has anyone else seen this problem, or perhaps know what I might be doing
  41. wrong?
  42.  
  43. email preferred.
  44.  
  45. thanks
  46.  
  47. 'mark
  48.  
  49. -- 
  50. ===============    regards   'mark  =============================================
  51. Mark Ahlenius           voice:(708)-632-5346  email: ahlenius@marble.rtsg.mot.com
  52. Motorola Inc.          fax:  (708)-632-2413
  53. Arlington, Hts. IL, USA     60004
  54.