Simon Willison's TILs personal blog

Escaping strings in Bash using !:q

TIL this trick, via Pascal Hirsch on Twitter. Enter a line of Bash starting with a # comment, then run !:q on the next line to see what that would be with proper Bash escaping applied.
Points
482
HN comments
81
Submissions
1
Cited by
0 commenters

Tools & ProductivitySoftware Engineering2020

On Hacker News

SubmittedTitle on HNPointsComments
Oct 2, 2020Escaping strings in Bash using !:q by goranmoomin48281

More from Simon Willison's TILs

All 13 posts →

Related posts from the same era