FIXED: a bug in csh(1)

utzoo!decvax!ucbvax!dist2 utzoo!decvax!ucbvax!dist2
Sun Dec 6 02:58:51 AEST 1981


	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);
	---
	> 		t = syntax(paraml.next, &paraml, 0);

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

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

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

			Carl



More information about the Comp.bugs.2bsd mailing list