[ale] Keep things from history
Tim Watts
tim at cliftonfarm.org
Sat May 14 14:37:08 EDT 2011
On Sat, 2011-05-14 at 12:08 -0400, The Don Lachlan wrote:
> On Sat, May 14, 2011 at 11:30:56AM -0400, Chris Fowler wrote:
> > Interesting thing I found in bash a while back and noticed it again
> > today.
> > If you put a space before the command it will not be stored in bash's
> > history.
>
> Correction: Bash can be *told* to do that.
>
> If you look at your HISTFILE env variable, you'll find "[ ]*" as one of the
> colon-separated elements. That's why it ignores commands that start with a
> space and why it won't necessarily work everywhere - it has to be set up.
>
> This is mine:
>
> HISTIGNORE="&:ls:cd:[bf]g:[ ]*"
>
> -L
Seems that on my ubuntu 10.04 system it discards "[ ]*" from history
without being told -- i.e. no HISTIGNORE env var is set. So presumably
this is the compiled default. Given that, I guess I'd have to use an
explicit HISTIGNORE to tell it NOT to discard.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
More information about the Ale
mailing list