5 ms·
> Not knowing what command you are doing before you submit it is poor design. For this reason I recommend avoiding using history expansion features with any co
by fubaz 2mo ago
> Not knowing what command you are doing before you submit it is poor design.
For this reason I recommend avoiding using history expansion features with any commands in history that might destructively modify file contents, such as `find ... -delete` in GNU find.
In the default Bash Emacs readline bindings, you can type Alt/Meta-^ to expand history on the current line without executing. You can also set `shopt -s histverify` to expand the history substitution on the following line after pressing enter/submitting the history substitution and it also does not execute the command.