Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!uflorida!haven!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.shell Subject: Re: Help needed with conditional statement for alias in csh Message-ID: <26648@mimsy.umd.edu> Date: 21 Sep 90 13:17:46 GMT References: <6932.26ed237f@uwovax.uwo.ca> <26553@mimsy.umd.edu> <1990Sep21.093645.16163@eua.ericsson.se> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 20 [on && and || in csh] In article <1990Sep21.093645.16163@eua.ericsson.se> per@erix.ericsson.se (Per Hedeland) writes: >I spoke for *the* C-shell, as found in the BSD distribution (I wouldn't >dream of claiming any ownership:-). If someone distributes a shell where the >meaning of && and || is reversed, it certainly isn't the C-shell ... Hm, well, there never was `the' C shell, but rather several different C shells, at least as of the first VAX distribution. (The sources for csh included an assembly-language _doprnt function, and clearly this was different from the version on the PDP-11 2BSD distribution.) At any rate, there are two major variants of the C shell, one lacking job control. The one without job control (which was the one in the 3BSD VAX distribution) also had the bug with && and || being reversed. No doubt this is the one that was used as a base for the Xenix C shell. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 405 2750) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris