bin/177673: sh(1): Possible comment problem

jilles at jilles at
Sun Apr 7 16:21:45 UTC 2013

Old Synopsis: Possible comment problem is /bin/sh
New Synopsis: sh(1): Possible comment problem

State-Changed-From-To: open->feedback
State-Changed-By: jilles
State-Changed-When: Sun Apr 7 16:13:03 UTC 2013
I compiled stable/4 sh and it shows the same

a comment follows#comment.

as recent sh and all other Bourne-style shells I tried. POSIX is also
clear that a '#' only begins a comment if it is at the start of a word.
This means that it can be (in most cases) at the start of a line, after
whitespace or after an operator such as ')' and '&&'.

There is likely something different going on here.

I notice that tcsh does begin a comment in your script.

Responsible-Changed-From-To: freebsd-bugs->jilles
Responsible-Changed-By: jilles
Responsible-Changed-When: Sun Apr 7 16:13:03 UTC 2013
sh(1) is my area.

More information about the freebsd-bugs mailing list