Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!uunet!mcvax!ukc!pyrltd!datcon!sar From: sar@datcon.UUCP (Simon A Reap) Newsgroups: comp.unix.questions Subject: Re: Line at a time scripts in csh Message-ID: <37@datcon.UUCP> Date: 27 Jan 89 12:53:02 GMT References: <4116@paris.ics.uci.edu> <909@ubu.warwick.UUCP> <7296@ihlpf.ATT.COM> <872@auspex.UUCP> <7372@ihlpf.ATT.COM> Reply-To: sar@datcon.co.uk (Simon A Reap) Organization: Data Connection Limited, Enfield, Middlesex, UK Lines: 16 In article <7372@ihlpf.ATT.COM> lukas@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@datcon.co.uk, or ...!mcvax!ukc!pyrltd!datcon!sar