Comment lines in the Bourne shell

carl carl at bdaemon.UUCP
Fri Jun 14 00:38:13 AEST 1985


For example, the comment
> 
> : to use this file type <name> | lpr
> 
> produces a message referring to the pipe, even though the whole
> line is commented out.  What am I missing?

The problem is that the : is a no-op instead of a comment delimiter.
Everything following the colon is evaluated and zero is returned.

Carl Brandauer



More information about the Comp.unix mailing list