Hello,
In using the Bourne shell on a Solaris 8 system I was never really sure if I needed to place a string variables in quotes as if there a no spaces it always seems to work for me.
These work identically for me:
If there are no spaces are there any good reasons to use quotes on string variable assignment in Bourne shell scripts?
Thanks,
Michael42
In using the Bourne shell on a Solaris 8 system I was never really sure if I needed to place a string variables in quotes as if there a no spaces it always seems to work for me.
These work identically for me:
Code:
FILE=/mypath/myfile.txt
Code:
FILE="/mypath/myfile.txt"
If there are no spaces are there any good reasons to use quotes on string variable assignment in Bourne shell scripts?
Thanks,
Michael42