Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!cos!hqda-ai!merlin
From: merlin@hqda-ai.UUCP (David S. Hayes)
Newsgroups: comp.unix.questions
Subject: Re: History not starting from 1
Message-ID: <543@hqda-ai.UUCP>
Date: Sat, 5-Dec-87 18:15:03 EST
Article-I.D.: hqda-ai.543
Posted: Sat Dec  5 18:15:03 1987
Date-Received: Thu, 10-Dec-87 20:09:31 EST
References: <616@umbc3.UMD.EDU>
Organization: Army AI Center, Pentagon
Lines: 19
Summary: Keeping history from previous sessions.

In article <616@umbc3.UMD.EDU>, dipto@umbc3.UMD.EDU (Dipto Chakravarty) writes:
> Every time I start up a shell or login, the history number should
> begin with a one.  However, in my case I get  22% as the starting
> number; from there on it starts incrementing. There may be a silly
> reason which I am unable to see. Any insight ?

     The Sun version of csh includes the ability to save history
from previous sessions.  On logout, some number ($savehist) of
commands are saved in a file ~/.history.  When csh is started, it
looks for this file, and reloads from it.

     Delete ~/.history, and your history numbers will start again
at 1.  Alternatively, if you wish, set $savehist in your .login,
and you can carry over the last 'n' commands from one login
session to the next.

-- 
David S. Hayes, The Merlin of Avalon	PhoneNet:  (202) 694-6900
UUCP:  *!uunet!cos!hqda-ai!merlin	ARPA:  ai01@hios-pent.arpa