bug-bash
[Top][All Lists]
Advanced

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

Re: inline-comments no longer work in 3.1_p16


From: Chet Ramey
Subject: Re: inline-comments no longer work in 3.1_p16
Date: Sat, 20 May 2006 10:27:56 -0400
User-agent: Thunderbird 1.5.0.2 (Macintosh/20060308)

Jan Schmidt wrote:

> Bash Version: 3.1
> Patch Level: 16
> Release Status: release
> 
> Description:
>         Inline comments worked in earlier versions of bash (e.g. 3.0).
> They seem to cause errors, now. I could not find any comment on this in
> the changelog.
> 
> Repeat-By:
>         use "$( #comment )" in a bash script to generate an inline comment.
>         this will cause the "unexpected EOF while looking for matching
> `)'" error.

That should be an error.  A comment introduced by `#' extends to the
end of the line.  In your example, it obscures the `)'.  This was an
error in versions of bash preceding 3.1.

This changed between bash-3.1-alpha and bash-3.1-beta and was noted in
CHANGES.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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