unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Makefile mode's sh comment non-exactness
@ 2004-08-27  5:26 Dan Jacobson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-08-27  5:26 UTC (permalink / raw)


Makefile mode's colors show that it thinks this
	cd $?.d && sed /^#/d ../$?|wget -w 2 ...
is a comment starting at #.
Yes I could use
	cd $?.d && sed '/^#/d' ../$?|wget -w 2 ...
but then my friends would think I was silly.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Makefile mode's sh comment non-exactness
       [not found] <mailman.532.1093712523.1998.bug-gnu-emacs@gnu.org>
@ 2004-08-30 15:59 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-08-30 15:59 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-30 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.532.1093712523.1998.bug-gnu-emacs@gnu.org>
2004-08-30 15:59 ` Makefile mode's sh comment non-exactness Kevin Rodgers
2004-08-27  5:26 Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).