Forcing /bin/sh in a script under V/386 3.2 Korn shell

Guy Harris guy at auspex.auspex.com
Fri Jul 21 04:35:46 AEST 1989


 >While this is true, it can be misleading.  In particular, the line
 >
 >	cat file file2 > file3
 >
 >isn't commented out by prefixing it with a colon.  Cat doesn't run,
 >but redirection *will* take place and file3 will be truncated.

Furthermore, it means that the arguments to the ":" command are parsed,
so the shell won't do what you want if you try something like

	:
	: This isn't a comment
	:

(unless you want something rather perverse).



More information about the Comp.unix.questions mailing list