/bin/sh feature? - (nf)

lee at haddock.UUCP lee at haddock.UUCP
Wed Jul 18 13:43:42 AEST 1984


#R:uvm-cs:-27400:haddock:16800019:000:484
haddock!lee    Jul 15 01:15:00 1984

The shell does more than just parse command lines using the ":" (do nothing)
command.  Because it treats the line as a command, side effects of the
command are NOT "commented out".  For example, try

	: `echo foo >/dev/tty` thud

and you will find that "foo" appears on your terminal.  Therefore, it is
only in a very weak (expensive) sense that the ":" command can be considered
a comment at all.  It is much more accurate to think of it like the "true"
command -- trivial but real.



More information about the Comp.unix.wizards mailing list