[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Keep things from history
- Subject: [ale] Keep things from history
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Sat, 14 May 2011 11:30:56 -0400
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.
cfowler at cfowler-desktop:/etc/udev/rules.d$ echo "Hello"
Hello
cfowler at cfowler-desktop:/etc/udev/rules.d$ history | tail -n 2
533 echo "Hello"
534 history | tail -n 2
cfowler at cfowler-desktop:/etc/udev/rules.d$ echo "Hello There"
Hello There
cfowler at cfowler-desktop:/etc/udev/rules.d$ history | tail -n 5
531 history 2
532 history
533 echo "Hello"
534 history | tail -n 2
535 history | tail -n 5
cfowler at cfowler-desktop:/etc/udev/rules.d$