bin/177673: Possible comment problem is /bin/sh

Joe Public root at
Sat Apr 6 20:30:01 UTC 2013

>Number:         177673
>Category:       bin
>Synopsis:       Possible comment problem is /bin/sh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 06 20:30:00 UTC 2013
>Originator:     Joe Public
>Release:        FreeBSD 9.1-RELEASE i386
System: FreeBSD 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root at i386
/bin/sh comments in a script will attach to an adjacent string.
An simple example follows, but they also attach in assignments, etc.
This broke 4.11 scripts, so I know sh(1) has changed since then,
but I am not qualified to state whether the current or previous
behavior is correct.
echo 'a comment follows'#comment.

$ ./script
$ a comment follows#comment.
Requires someone knowledgeable with /bin/sh code.

More information about the freebsd-bugs mailing list