bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax question


From: Caleb Cushing
Subject: Re: Syntax question
Date: Sun, 25 Mar 2007 12:09:23 -0400

thx for the answer. I didn't realize my error, that white space defines the
separation of words, even when dealing with symbols. wish vim syntax
highlighted this stuff as the shell interprets because it sees it as a
comment. anyways like I said thanks for the explanation. I'm not going to
forget this lesson anytime soon.

On 3/25/07, Paul Jarc <prj@po.cwru.edu> wrote:

"Caleb Cushing" <xenoterracide@gmail.com> wrote:
> the line
> FEATURES="parallel-fetch ccache distlocks"# userfetch userpriv
usersandbox
>
> I was told my bug is not a bug because there was no space in between the
"#
>
> putting a space does fix the problem but I can't recall that I've ever
seen
> any documentation saying that mid line comments need a space before the
#

man bash, in the section COMMENTS:
  a word beginning with # causes that word and all remaining
  characters on that line to be ignored

In your case, the # is not at the beginning of a word, so it doesn't
start a comment.  (Quotes don't separate words; a word can be partly
quoted and partly not.)


paul




--
Caleb Cushing


reply via email to

[Prev in Thread] Current Thread [Next in Thread]