/bin/sh feature?

Ben Goldfarb Esq. goldfarb at ucf-cs.UUCP
Mon Jul 9 23:49:51 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



More information about the Comp.unix.wizards mailing list