[comp.sys.att] .history$$ files for ksh

lenny@icus.UUCP (Lenny Tropiano) (08/13/88)

In article <226@ssbn.WLK.COM> bill@ssbn.UUCP (Bill Kennedy) writes:
|>In article <11300001@osiris.cso.uiuc.edu> hood@osiris.cso.uiuc.edu writes:
|>>
|>>A very simple solution to the problem of multiple history files is to
|>>
|>>	HISTFILE=$HOME/.history$$
|>>
|>>Works for me...
|>>
|>>Emmet P. Gray		US Army, HQ III Corps & Fort Hood
|>
|>Once again a tip of the hat to Emmet for a useful and welcome contribution.
|>I knew there was some way to do it but never read enough to know how.  This
|>is handy, Thanks!
|>
|>Not to be a nit picker, but how do you get rid of them when you log out?
[...]

Well you could stick this line in your .profile:

trap 'rm -f ~/.history$$"' 0

This should work...

-Lenny

-- 
Paper-net: Lenny Tropiano          | @-net:         lenny@icus.UUCP
           ICUS Software Systems   | !-net:      ...sbcs   \
           PO Box 1                |                boulder \
           Islip Terrace, NY 11752 |                talcott  !icus!lenny
Vocal-net: (516) 582-5525 [work]   |                pacbell /
           (516) 968-8576 [home]   |                hombre /
Telex-net: 154232428 ICUS          | Another-net:   attmail!icus!lenny

lenny@icus.UUCP (Lenny Tropiano) (08/14/88)

In article <465@icus.UUCP> lenny@icus.UUCP (Lenny Tropiano) writes:
...
|>Well you could stick this line in your .profile:
|>
|>trap 'rm -f ~/.history$$"' 0
                          ^     CORRECTION: That quote shouldn't be there.

-Lenny
-- 
Paper-net: Lenny Tropiano          | @-net:         lenny@icus.UUCP
           ICUS Software Systems   | !-net:      ...sbcs   \
           PO Box 1                |                boulder \
           Islip Terrace, NY 11752 |                talcott  !icus!lenny
Vocal-net: (516) 582-5525 [work]   |                pacbell /
           (516) 968-8576 [home]   |                hombre /
Telex-net: 154232428 ICUS          | Another-net:   attmail!icus!lenny