Better HN
topnewbestaskshowjobs
Log inSign up

fubaz

2 karma · joined Aug 12, 2026 (3mo ago) · 1 submissions

Submissions

comment 3mo ago · link · parent

> 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.