$ # This string 'has single' "and double" quotes and a $$ !:q
'# This string '\''has single'\'' "and double" quotes and a $'
bash: # This string 'has single' "and double" quotes and a $: command not found
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
Saw this
bash
trick discussion at: news.ycombinator.com/item?id=24659282 which has other suggestions like:!:q:p
prevents the complaint about command not found!:q
and then pressingM-^
(probablyAlt-Shift-6
) to do the history expansion is probably more useful; then you can immediately edit the line.bashquote() { printf '%q\n' "$(cat)" ; }
That's awesome! 🔥