Hi,

I first noticed this in a shell script under mingw but tested it in bash
under Linux and it has the same behaviour.

 

some_var=# What I thought was a comment.

 

The '#' is eaten by the variable assignment so that some_var gets a null
value and the rest of the line is not treated like a command.

 

If there is no space after the '#':

 

some_var=#What

 

Then some_var is set to '#What'.

 

Regards,

Keith Clifford.

Reply via email to