Use of && and || in sh / csh
Bill Silvert
silvert at dalcs.UUCP
Sat May 4 02:51:32 AEST 1985
I have a problem with the Unisoft 2.4 on my Wicat which does not
appear under 4.2 -- the sense of && and || are reversed when run
under csh. For example, the command line
test -s file && echo file is there
will print the echo line if file exists and is not empty if run under
sh, but the sense of the test is reversed and nothing is printed when
I run under csh. Is this a unique bug in Unisoft Unix, or is there a
rationale to the difference?
--
Bill Silvert
Marine Ecology Lab.
Dartmouth, NS
dalcs!biomel!bill
More information about the Comp.sources.bugs
mailing list