Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site dalcs.UUCP Path: utzoo!utcsri!dalcs!silvert From: silvert@dalcs.UUCP (Bill Silvert) Newsgroups: net.sources.bugs Subject: Use of && and || in sh / csh Message-ID: <1502@dalcs.UUCP> Date: Fri, 3-May-85 12:51:32 EDT Article-I.D.: dalcs.1502 Posted: Fri May 3 12:51:32 1985 Date-Received: Sat, 4-May-85 02:04:29 EDT Organization: Dalhousie University, Halifax, N.S., Canada Lines: 13 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