From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 7 16:21:45 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7031F16C; Sun, 7 Apr 2013 16:21:45 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6429330E; Sun, 7 Apr 2013 16:21:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r37GLj4R041843; Sun, 7 Apr 2013 16:21:45 GMT (envelope-from jilles@freefall.freebsd.org) Received: (from jilles@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r37GLjAu041842; Sun, 7 Apr 2013 16:21:45 GMT (envelope-from jilles) Date: Sun, 7 Apr 2013 16:21:45 GMT Message-Id: <201304071621.r37GLjAu041842@freefall.freebsd.org> To: root@ai1.alaska.net, jilles@FreeBSD.org, freebsd-bugs@FreeBSD.org, jilles@FreeBSD.org From: jilles@FreeBSD.org Subject: Re: bin/177673: sh(1): Possible comment problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Apr 2013 16:21:45 -0000 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 State-Changed-Why: 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 Responsible-Changed-Why: sh(1) is my area. http://www.freebsd.org/cgi/query-pr.cgi?pr=177673