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 [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash