Also sprach Vineet Kumar (Wed 05 Mar 02003 at 09:17:47AM -0800):
> * Michael D. Schleif <[EMAIL PROTECTED]> [20030304 19:15 PST]:
> > By-the-by, where does a bash session keep track of command history while
> > that session is open?
> > 
> > How does it know whether to use ~/.bash_history or this elusive memory
> > pointer?
> 
> It always performs history search/substitution from the history in
> memory.  ~/.bash_history (or, more precisely, HISTFILE) is read at start
> and written at exit.  That's all the file is used for; bash doesn't do
> any seeking/reading during normal operations.  The file is just to store
> the data when bash exits.
> 
> This information is in the manual (bash(1)).

Thank you, for this explanation.  Yes, I now see where the manpage
references this; but, I did not understand this until your -- imho,
clearer -- explanation.

-- 
Best Regards,

mds
mds resource
888.250.3987
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to