Forcing /bin/sh in a script under V/386 3.2 Korn shell
Stephen J. Friedl
friedl at vsi.COM
Wed Jul 19 13:20:03 AEST 1989
In article <1792 at cadillac.CAD.MCC.COM>, ned at pebbles.cad.mcc.com (CME Ned Nowotny) writes:
> In fact, one of the most useful things you could do
> with ":" was to comment your shell script since ":" does nothing
> with the arguments (a.k.a. comment string) that you may provide
> it.
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.
Steve
--
Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442
3B2-kind-of-guy / {attmail uunet}!vsi!{bang!}friedl / friedl at vsi.com
"Why can't I do pointer multiplication in C?" - Blair Houghton
More information about the Comp.unix.questions
mailing list