I need to pass a string to a program as its argument from the bash cli, e.g
program "don't do this"
program 'don\'t do this' //escape doesn't work in single quote
program $'dont\'t do this' //seems fine, but any other side effects?
program 'dont'\''do this' //breaking into 3 parts
It causes escape sequences to be interpreted.
$ echo $'Name\tAge\nBob\t24\nMary\t36' Name Age Bob 24 Mary 36
(And SO handles tabs in a goofy manner, so try this one at home)