Bash Escaping strings

---

bash-3.2$ # This string ‘has single’ “and double” quotes and a $
bash-3.2$ !:q
‘# This string ‘\”has single’\” “and double” quotes and a $’
bash: # This string ‘has single’ “and double” quotes and a $: command not found

https://news.ycombinator.com/item?id=24659282

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>