News for hackers. Stuff that matters.
Re:Advancing in the Bash Shell by teraflop on Tuesday September 13, 2016 @06:34AM (#12486849)
If you don't want to rely on the "histverify" option being enabled, you can get a similar effect by appending ":p" to the history reference, e.g.

    sudo !!:p
which tells bash to do the history expansion, but print the result and add it to the command line history, instead of actually running it. If the command looks correct, it's only two more keystrokes (up-arrow, enter) to run it for real.
Re:Advancing in the Bash Shell by Natanael_L on Tuesday September 13, 2016 @05:13PM (#12492303)
That feels dangerous. For example, on Swedish keyboards the character ; is one key away from :