in reply to Detect cruft in your $PATH

In the bash you have to use single quotes, otherwise the bang ! is interpreted as a reference to the history.

Replies are listed 'Best First'.
Re^2: Detect cruft in your $PATH
by Fletch (Bishop) on Aug 14, 2007 at 13:46 UTC

    zsh as well. I'm going to go out on a limb and say tcsh and csh also want single quotes to avoid interacting with the history mechanism . . .