Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I know that may be convenient, but you'll want to exercise caution because $'' turns on inner escaping that wouldn't otherwise happen inside single-quoted strings

    $ echo 'hello \"world'
    hello \"world
    $ echo $'hello \"world'
    hello "world


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: