On 08/16/2012 06:36 PM, Keith Clifford wrote: > > some_var=# What I thought was a comment. ^
Not the first byte of a word. # starts a comment only when it is the first byte of a word. You can write: some_var= #Now this is a comment, since there is space between = and # if you meant for some_var to be assigned the empty string, or write: some_var='# Embedded as part of the assignment' if you meant to include more than just the # in the value assigned to the var. > > some_var=#What > > > > Then some_var is set to '#What'. Yep, and that is correct behavior as mandated by POSIX. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature