Ahao.137
net.2bsd-bugs
utzoo!decvax!ucbvax!menlo70!hao!pag
Thu Oct 1 13:27:16 1981
C shell bug
The "&&" and "||" command operators (as opposed to expression operators)
in the C shell have their senses reversed, ie
XXX && date yields
XXX: command not found
Thu Oct 1 13:05:38 MDT 1981
XXX || date yields
XXX: command not found
The fix for this is in the file sh.sem.c; replace the line
if ((getn(value("status")) == 0) == (t->t_dtyp == TAND))
with
if ((getn(value("status")) == 0) == (t->t_dtyp == TOR))
As far as I know, this bug still exists on both the 2.8 and 4.1 bsd's.
--peter gross
ucbvax!menlo70!hao!pag
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.