Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan From: kayvan@mrspoc.transact.com (Kayvan Sylvan) Newsgroups: gnu.bash.bug Subject: 1.03 comments Message-ID: Date: 8 Sep 89 18:06:00 GMT References: Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Jeff Sparkes writes: > > Are there any plans for supporting history among multi shells on the > same machine? ksh will write each command to the history file, and > then re-read it. In bash, whoever writes the file last (most > recently) gets to put their entire history in. > I handle this by doing this in my .bash_profile: mytty=`/bin/tty` export HISTFILE=~/.bash_hist/`echo $mytty | sed 'sx/dev/ttyxx'` That way, each shell has a separate hisory file. ---Kayvan Kayvan Sylvan @ Transact Software, Inc. -*- Los Altos, CA (415) 961-6112 Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan