2 ms·
When ! occurs in an interactive command, Bash treats that specially (for history substitution or something; I don't use this so I'm foggy on the details). It's
by kazinator 3y ago
When ! occurs in an interactive command, Bash treats that specially (for history substitution or something; I don't use this so I'm foggy on the details).
It's a POSIX violation which the Bash people think is okay because it doesn't affect scripts.
So you can't just dump this into your shell interactively. It's meant to be put into a file that is sourced.
Sorry about not mentioning it!