Re: history -s from inside function replaces last command rather than ad
From:
Greg Wooledge
Subject:
Re: history -s from inside function replaces last command rather than adding to it
Date:
Tue, 17 Dec 2024 12:57:24 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
On Tue, Dec 17, 2024 at 17:48:15 +0000, Bug Maybefound wrote:
> 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>
The output of "help" is not always complete documentation for a given
builtin. The man page may have more information than the help command.
And the info pages may have more information than the man page (rarely).