I don't do enough scripting to remember, without looking up, whether double or single quotes result in a Unix variable being substituted.
I definitely understand what is going on. My question is does anyone have a memory trick for making the correct quoting rule stick in my head?
rc
as your shell, then you have only one type of quotes ("
is an ordinary character inrc
where the only quotes are single quotes and backslash is only used for line-continuation (not inside single quotes)). It's also got a much leaner, cleaner, better, more intuitive syntax and design than Korn-like shells like bash. – Stéphane Chazelas Oct 26 '17 at 08:45