Fred Stluka on 13 Oct 2009 10:07:56 -0700

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

Re: [PLUG] bash history

Edmond Rodriguez wrote:
I was going to post this, but thought I would pass it to you first. 

Have you noticed if a command in bash is preceded by a space, it does not go into the history?

for example type the following:

 ps      (Note the ps is preceded by a space)

Now when hitting the up arrow after entering the you don't get "ps" but pwd.  ps is skipped I guess because of the preceding space. 

Probably old news, which is why I am passing it on to you first. 



Not sure of you intended to post this to the entire PLUG list, or
just e-mail to a single person, but...

Yeah, space keeps it out of the history.  For more info, see:
    man bash
and search for HISTCONTROL, HISTIGNORE, etc.
Fred Stluka -- --
Bristle Software, Inc -- -- Glad to be of service!

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --