I assumed it must be from a more recent bash than I have since mine
doesn’t have it:
$ help history
<snip>
-p perform history expansion on each ARG and display the
result
without storing it in the history list
-s append the ARGs to the history list as a single entry
If FILENAME is given, it is used as the history file. Otherwise,
<snip>
------ Original Message ------
From "Chet Ramey" <chet.ra...@case.edu>
To "Bug Maybefound" <bugb...@89vx.net>; bug-bash@gnu.org
Cc chet.ra...@case.edu
Date 12/17/2024 4:11:29 AM
Subject Re: history -s from inside function replaces last command rather
than adding to it
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 c...@case.edu http://tiswww.cwru.edu/~chet/