home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!ftpbox!motsrd!white!sapphire.rtsg.mot.com!turquoise!ahlenius
- From: ahlenius@rtsg.mot.com (Mark Ahlenius)
- Subject: Problem with ksh & history file
- Message-ID: <ahlenius.714765621@turquoise>
- Summary: Problem with ksh in several xterm windows with unique history files
- Keywords: ksh histfile
- Sender: news@rtsg.mot.com
- Nntp-Posting-Host: turquoise
- Organization: Motorola Inc., Cellular Infrastructure Group
- Date: Tue, 25 Aug 1992 18:00:21 GMT
- Lines: 40
-
- I am having a problem still with ksh on our Sys VR3 machine
- (Motorola 88k Delta box). The version of ksh we are running is
- 11/16/88g.
-
- I have it set up via my .kshrc file to have separate history files
- for each xterminal window I have open.
-
- Because I log into various machines, I use the machine name and
- the last couple of characters from the tty name as the history file
- name.
-
- Thus I have:
-
- term=$(tty)
- MACHINE=$(hostname)
- HISTFILE=${HOME}./$MACHINE${term#/dev/tty}
- export MACHINE HISTFILE
-
- ...
-
- The problem is that this works fine for a while, then all of a sudden,
- I either cannot recall anything from the history buffer, or the history
- buffers for the two (or more) xterm windows are the same. The later case
- being that I will recall commands typed in the other xterm window, instead
- of the ones typed in the same window.
-
- Has anyone else seen this problem, or perhaps know what I might be doing
- wrong?
-
- email preferred.
-
- thanks
-
- 'mark
-
- --
- =============== regards 'mark =============================================
- Mark Ahlenius voice:(708)-632-5346 email: ahlenius@marble.rtsg.mot.com
- Motorola Inc. fax: (708)-632-2413
- Arlington, Hts. IL, USA 60004
-