Re: To escape saving double commands in shell command history.
On Thu, Nov 24, 2011 at 05:54:27AM GMT, Sthu Deus wrote:
> Good time of the day.
G'day.
> I try to escaping saving double commands in shell command history.
The subject is somewhat confusing - escaping in regards to shell usually
means something else :^)
> env shows among other things:
>
> SHELL=/bin/bash
If bash is your login shell this is redundant.
> HISTCONTROL=ignoreboth
Have you put the second line into your .bashrc file?
> as I understand, it should be enough to cease saving the already
> had commands - but it is not so - the commands are saved still. What
> can be wrong or should be specified more?
This is enough as it is a shorthand for ignoredups and ingorespace so
you must be doing something wrong here ;^)
Regards,
--
Raf
Reply to: