[ale] Keep things from history

Chris Fowler cfowler at outpostsentinel.com
Sat May 14 11:30:56 EDT 2011


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$ 




More information about the Ale mailing list