Text File

Aucbvax.5398 net.2bsd-bugs utzoo!decvax!ucbvax!dist2 Sun Dec 6 02:58:51 1981 FIXED: a bug in csh(1) A heinous bug has been found in the csh. The routine syntax() expects 3 parameters and is only called with 2, when called non-recursively, eg in sh.c. The third parameter is a word of flags. The fix is to replace calls of syntax(p1, p2) with syntax(p1, p2, 0).

Specifically, the necessary modifications are:

diff src/csh/sh.c.old src/csh/sh.c 639c639 t = syntax(paraml.next, &paraml, 0);

diff src/csh/sh.exp.c.old src/csh/sh.exp.c 483c483 t = syntax(paraml.next, &paraml, 0);

diff src/csh/sh.glob.c.old src/csh/sh.glob.c 645c645 t = syntax(paraml.next, &paraml, 0);

These changes are necessary on all tapes written before 12/5/81.

Carl

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> 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.