[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell comment ignored
From: |
Mike Frysinger |
Subject: |
Re: Shell comment ignored |
Date: |
Fri, 17 Aug 2012 00:23:09 -0400 |
User-agent: |
KMail/1.13.7 (Linux/3.5.0; KDE/4.6.5; x86_64; ; ) |
On Thursday 16 August 2012 20:36:45 Keith Clifford wrote:
> 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.
this is correct (if sometimes confusing to people) behavior. you need to have
some byte in there that breaks up the tokens -- be it a tab, space, or
newline.
-mike
signature.asc
Description: This is a digitally signed message part.