[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: To escape saving double commands in shell command history.



On Thu, Nov 24, 2011 at 10:01:00AM GMT, Sthu Deus wrote:
> Thank You for Your time and answer, Raf:
> 
> >> 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 :^)
> 
> Ahh. Seems alright to me. :o)

Then look for "escape bash shell" (or similar) on the net ;^)

> >> HISTCONTROL=ignoreboth
> >
> >Have you put the second line into your .bashrc file?

My bad, it should have been .bash_profile.

> I made it through
> 
> .bash_login
> 
> file this way:
> 
> export HISTCONTROL=ignoreboth
> 
> and it has other lines behind, therefore, yes. AFAIK if env shows the
> desired variable set as wanted, then, syntax does not matter - it is
> on already. 

.bash_login is read only for login shells if .bash_profile doesn't
exist.

Regards,
-- 
Raf


Reply to: