|
From: | Bug Maybefound |
Subject: | Re[2]: history -s from inside function replaces last command rather than adding to it |
Date: | Tue, 17 Dec 2024 17:48:15 +0000 |
User-agent: | eM_Client/10.0.3530.0 |
$ 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.ramey@case.edu>
To "Bug Maybefound" <bugbash@89vx.net>; bug-bash@gnu.org Cc chet.ramey@case.edu Date 12/17/2024 4:11:29 AMSubject 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 chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |