|
|
|
|
|
by dekhn
1703 days ago
|
|
In those days people mainly used ! expansion. https://en.wikipedia.org/wiki/C_shell#History. I know many people who are incredibly good at using ! expansion to edit previous commands ("change that command 5 lines ago to rm -rf this other folder") but it's a bit of a footgun. |
|
If you just want to execute it then it is a footgun - using only the !command syntax.
If you use the !command:p syntax then you are just printing what command has been executed instead of invoking it.
Example.