[Cialug] HISTIGNORE Question
Kyle H
khamil8686 at gmail.com
Wed Jun 20 16:33:21 UTC 2018
what if you tried * or \* for HISTIGNORE? my guess... does that work? I'm
not where i can try it
On Wed, Jun 20, 2018 at 11:30 AM Todd Walton <tdwalton at gmail.com> wrote:
> It appears to me that if I set $HISTIGNORE to something like this: 'ls*',
> then when I enter "ls -al ~/mydirectory" at the command line it doesn't go
> into history. Hooray. That's the correct behavior. But this would also not
> go into history: "ls -al ~/mydirectory; vim /etc/passwd; echo ha ha
> suckers".
>
> That seems like a bad design. I wouldn't expect bash history to be made to
> resist manipulation by a person-of-ill-intent. That's out of scope for
> that. But even a legitimate user could accidentally preface a command
> they'd like to keep with a command they don't care about, overlooking the
> fact that it would prevent the command they'd like to keep from going into
> history.
>
> Can HISTIGNORE be written to prevent that situation?
>
> --
> Todd, off to experiment
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
More information about the Cialug
mailing list