Line at a time scripts in csh

Simon A Reap sar at datcon.UUCP
Fri Jan 27 22:53:02 AEST 1989


In article <7372 at ihlpf.ATT.COM> lukas at ihlpf.UUCP (00771g-Lukas,J.) writes:
>..............    I just wrote
>the script as given, and tried it with sh, ksh, and csh, and it
>worked for all three.

Ah, but don't all of these shells (and others) run scripts via the
Bourne shell (except for the dodgy and almost-undocumented fudge of
having the first line start with a '#' or '#!/bin/csh etc etc to force
use of the C shell.  How many of us *haven't* been caught by this,
prettifying a working shell script by adding header comments, then
finding it no longer works as the Bourne shell constructs get munged by
the wonderful Cshell :-( )
-- 
Enjoy,
yerluvinunclesimon             Opinions are mine - my cat has her own ideas
Reach me at sar at datcon.co.uk, or ...!mcvax!ukc!pyrltd!datcon!sar



More information about the Comp.unix.questions mailing list