/bin/sh feature?

bet at ecsvax.UUCP bet at ecsvax.UUCP
Thu Jul 12 08:17:09 AEST 1984


> This points out the hazard of using ':' for a comment delimiter instead
> of '#'.  The shell DOES interpret special characters like quotes and
> parentheses after the ':', whereas everything on a line after a '#' is
> ignored (at least on 4.1bsd systems).  Thus, in your example the apostrophe
> is taken as the start of a quoted literal which never ends.  I've seen
> similar problems here and so I advise my shell programmers to use '#'
> as the comment delimiter.  I'd be interested in hearing whether this is
> indeed a bug or feature.
> 				Ben Goldfarb
> 				{duke,decvax,princeton}!ucf-cs!goldfarb

Sounds like useful behavior; by preceeding a statement with a colon it gets
commented out even if it is continued on the next line, no?

					Bennett Todd
					...{decvax,ihnp4,akgua}!mcnc!ecsvax!bet



More information about the Comp.unix.wizards mailing list