Re: history -s from inside function replaces last command rather than ad
From:
Chet Ramey
Subject:
Re: history -s from inside function replaces last command rather than adding to it
Date:
Tue, 17 Dec 2024 09:11:29 -0500
User-agent:
Mozilla Thunderbird
On 12/17/24 2:01 AM, Bug Maybefound wrote:
The second part was just recently added to the doc. Why wasn’t it there
before?
What does `recent' mean to you? The sentence about removing the last
command in the history list has been in the man page since bash-2.0,
in 1996, when `history'acquired the `-s' option.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/