Today I encountered this:
$ echo $'foo\\n' foo\n $ echo 'foo\\n' foo\\n
I have never come across this before and never heard anyone mention this. I would've expected
$ outside of strings to cause that string to be treated as a variable name. Where is this documented and has it always been this way?