[Tcsh] How is merge in savehist supposed to work?

Dr. Werner Fink werner at suse.de
Thu Jul 13 08:51:08 UTC 2023


after a report of a user I've done a small test case to show the

 boole:~ # useradd -m -s /bin/tcsh c1
 boole:~ # vi /home/c1/.tcshrc
 boole:~ # cat /home/c1/.tcshrc
 set histdup=prev
 set history=8
 set savehist=($history merge lock)
 boole:~ # su - c1
 boole /home/c1> touch m1
 boole /home/c1> touch m2
 boole /home/c1> touch m3
 boole /home/c1> touch m4
 boole /home/c1> touch m5
 boole /home/c1> touch m6
 boole /home/c1> touch m7
 boole /home/c1> touch m8
 boole /home/c1> logout
 boole:~ # su - c1
 boole /home/c1> cat m1
 boole /home/c1> cat m2
 boole /home/c1> cat m3
 boole /home/c1> cat m4
 boole /home/c1> cat m5
 boole /home/c1> cat m6
 boole /home/c1> cat m7
 boole /home/c1> cat m8
 boole /home/c1> logout
 boole:~ # cat /home/c1/.history 
 boole:~ # cat /home/c1/.history 
 touch m1
 touch m2
 touch m3
 touch m4
 touch m5
 touch m6
 touch m7
 touch m8

... looks like `merge` does not work to get the recent history


  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20230713/3868120c/attachment.asc>

More information about the Tcsh mailing list