From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Makefile mode's sh comment non-exactness Date: Mon, 30 Aug 2004 09:59:50 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <41334EF6.5020201@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093881639 9488 80.91.224.253 (30 Aug 2004 16:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2004 16:00:39 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 30 18:00:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C1oa5-0008JG-00 for ; Mon, 30 Aug 2004 18:00:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C1oev-0004jY-7E for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2004 12:05:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C1oer-0004jO-P0 for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2004 12:05:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C1oep-0004iY-Es for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2004 12:05:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C1oep-0004iU-Aq for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2004 12:05:23 -0400 Original-Received: from [132.239.1.55] (helo=mailbox3.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C1oZY-0007Sx-Ty for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2004 11:59:57 -0400 Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by mailbox3.ucsd.edu (8.13.1/8.13.0.Alpha0) with ESMTP id i7UFxoRJ050952 for ; Mon, 30 Aug 2004 08:59:51 -0700 (PDT) Original-Received: by Mail.FU-Berlin.DE (Exim 4.42) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1C1oZS-0005Jf-68>; Mon, 30 Aug 2004 17:59:50 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Mon, 30 Aug 2004 17:59:50 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 34 X-Orig-X-Trace: news.uni-berlin.de xP2OZZo888IdzZTjb5T73AWQZz7JiAoXBTGU9foOCxlnG2wIg= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox3.ucsd.edu (v1.4 May 20 2004 13:55:33, 2.2/5.0 2.63) X-MailScanner: PASSED (v1.2.8 33503 i7UFxoRJ050952 mailbox3.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8862 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8862 Dan Jacobson wrote: > Makefile mode's colors show that it thinks this > cd $?.d && sed /^#/d ../$?|wget -w 2 ... > is a comment starting at #. It may be, depending on how one reads the GNU make manual (Makefile Contents): | * `#' in a line of a makefile starts a "comment". It and the rest of | the line are ignored, except that a trailing backslash not escaped | by another backslash will continue the comment across multiple | lines. Comments may appear on any of the lines in the makefile, | except within a `define' directive, and perhaps within commands | (where the shell decides what is a comment). A line containing | just a comment (with perhaps spaces before it) is effectively | blank, and is ignored. The POSIX Single Unix Specification for the make command (see the Rationale) is clearer: | Early proposals stated that an "unquoted" number sign was treated as | the start of a comment. The make utility does not pay any attention | to quotes. A number sign starts a comment regardless of its | surroundings. > Yes I could use > cd $?.d && sed '/^#/d' ../$?|wget -w 2 ... > but then my friends would think I was silly. But then the shell would at least execute the sed command. -- Kevin Rodgers