[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: history -s from inside function replaces last command rather than ad
From: |
microsuxxor |
Subject: |
Re: history -s from inside function replaces last command rather than adding to it |
Date: |
Wed, 18 Dec 2024 19:07:19 +0100 |
history -s dummy args
On Wed, Dec 18, 2024, 4:58 PM Dale R. Worley <worley@alum.mit.edu> wrote:
> Chet Ramey <chet.ramey@case.edu> writes:
> > On 12/17/24 5:19 PM, Dale R. Worley wrote:
> > but it's tough to use programatically: How would
> >> you code a function for use in scripts that adds an entry "foo bar baz"
> >> to the history list without removing anything already on the history
> >> list?
> >
> > Add a dummy command to the history, or expect the function call to be
> > removed, or both?
>
> Er... How do you add a dummy command to the history? Admittedly, I'm
> not an expert in bash history processing, but I checked over the options
> to "history" and none of them simply add something to the history.
>
> Dale
>
>
- Re: history -s from inside function replaces last command rather than adding to it, (continued)
- Re: history -s from inside function replaces last command rather than adding to it, Greg Wooledge, 2024/12/16
- Re[2]: history -s from inside function replaces last command rather than adding to it, Bug Maybefound, 2024/12/17
- Re: history -s from inside function replaces last command rather than adding to it, Chet Ramey, 2024/12/17
- Re[2]: history -s from inside function replaces last command rather than adding to it, Bug Maybefound, 2024/12/17
- Re: history -s from inside function replaces last command rather than adding to it, Greg Wooledge, 2024/12/17
- Re: history -s from inside function replaces last command rather than adding to it, Chet Ramey, 2024/12/17
- Re: history -s from inside function replaces last command rather than adding to it, Dale R. Worley, 2024/12/17
- Re: history -s from inside function replaces last command rather than adding to it, Chet Ramey, 2024/12/18
- Re: history -s from inside function replaces last command rather than adding to it, Dale R. Worley, 2024/12/18
- Re: history -s from inside function replaces last command rather than adding to it, Chet Ramey, 2024/12/18
- Re: history -s from inside function replaces last command rather than adding to it,
microsuxxor <=