Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!spool.mu.edu!news.cs.indiana.edu!att!ucbvax!hplabs!hpl-opus!jewett From: jewett@hpl-opus.hpl.hp.com (Bob Jewett) Newsgroups: comp.sys.hp Subject: Re: tcsh or cetera for HP 9000? Message-ID: <63300025@hpl-opus.hpl.hp.com> Date: 11 Feb 91 17:17:06 GMT References: <1900@seti.inria.fr> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 15 > some bugs or questionable features relating to the history file, for > instance sharing the same history file between several ksh instances > sometimes works strangely. I think this can be fixed by the user. I set up one history file per tty, so different windows have separate histories. If I do a shell escape from some program, I have the history of that window. Here are the necessary lines from my .kshrc: HISTDIR=/tmp/${LOGNAME:-$USER} if [ ! -d $HISTDIR ] ; then /bin/mkdir $HISTDIR; fi HISTFILE=$HISTDIR/`basename \`tty\``.khist export HISTFILE Bob