Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.unix.questions Subject: Re: history/savehist variables in csh Message-ID: <14660006@hpsal2.HP.COM> Date: 25 Feb 89 02:22:36 GMT References: <345@shapetc.UUCP> Organization: HP System Architecture Lab, Cupertino Lines: 23 / hpsal2:comp.unix.questions / ec@shapetc.UUCP (Enrico Chiarucci) / 5:07 am Feb 21, 1989 / In my .login file I have the following lines (in a more or less vanilla Sun-2 flavour of unix): set history=128 set savehist=16 source -h ~/.history wishing to keep 128 commands in the history file, but to save only 16 of them across login sessions. Upon logging in, however, I consistently get 32 commands preserved from the previous session. enrico ---------- Are the second 16 of the 32 commands duplicates of the first 16? I believe the savehist feature automatically inserts the last 16 commands into your history stack and your invocation of "source -h" adds them in again. Michael