Quote:
Originally Posted by colucix
Why don't simply let the bash to expand by itself (without using single quotes, as pixellany pointed out)?
|
I'm using the Bourne shell, not Bash.
pixellany is correct though about using double quotes instead of single
(which I missed...). With double quotes string contents go through interpolation, meaning that the value of variables are substituted. This doesn't occur with single quotes. I'm guessing this has been part of shell programming from the beginning. Perl does the same thing, as it follows a lot of shell behavior given that originally Perl was meant to be an embellishment upon older shell themes.
Thanks to both for your answers.