# not honored?
Jean-Pierre Radley
jpr at dasys1.uucp
Thu Apr 12 07:37:25 AEST 1990
In article <3106 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
> some of
>Larry Wall's scripts open with a command that does one thing on "sh" and
>another on "csh", and if it detects it's running under "csh" it
>resubmits itself to "sh":
>PATH='.:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc'
>export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
Which never worked for me. I use csh most of the time.
Both on the Tandy 6000, and in SCO 386 Xenix, it turns
out that /bin/csh completey invert the meaning of
'&&' and '||'.
--
Jean-Pierre Radley jpr at jpradley.uucp
New York, NY 72160.1341 at compuserve.com
More information about the Comp.unix.questions
mailing list