🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #559

1.03 comments

#559
From: Kayvan Sylvan
Date: Fri, 08 Sep 1989 18:06
19 lines
1120 bytes
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
Technical Details
Message-ID: <KAYVAN.89Sep08110422@mrspoc.Transact.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan
References: <JEFF1.89Sep8073000@riemann.mun.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <KAYVAN.89Sep08110422@mrspoc.Transact.COM>
Date: 8 Sep 89 18:06:00 GMT
References: <JEFF1.89Sep8073000@riemann.mun.edu>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 19