[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
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:
ls
pwd
ps (Note the ps is preceded by a space)
time
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.
Edmond
Edmond,
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
---------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
---------------------------------------------------------------------
|
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|