Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!bellcore!ulysses!allegra!mit-eddie!think!harvard!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: 4.[12]bsd csh && bug (with fix) Message-ID: <6062@elsie.UUCP> Date: Wed, 2-Apr-86 09:42:30 EST Article-I.D.: elsie.6062 Posted: Wed Apr 2 09:42:30 1986 Date-Received: Sat, 5-Apr-86 07:18:30 EST Organization: NIH-LEC, Bethesda, MD Lines: 47 Keywords: bsd csh Index: bin/csh/sh.proc.c Fix Description: The output of jobs is wrong for processes that use && or || Repeat-By: Typing the commands ( sleep 3600 && who ) & jobs and noting the output: [1] + Running ( < ^A > ^A ) Fix: The changes below are to "sh.proc.c", in particular to the function "padd." Changes are conditioned on "OLDVERSION". As usual, the trade secret [material deleted] posting. ... padd(t) register struct command *t; { char **argp; if (t == 0) return; switch (t->t_dtyp) { #ifndef OLDVERSION case TAND: case TOR: padd(t->t_dcar); pads((t->t_dtyp == TAND) ? " && " : " || "); padd(t->t_dcdr); return; #endif /* !OLDVERSION */ case TPAR: ... -- TOR is the name of some book publisher, isn't it? Jobs used to be with Apple. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Shakespeare trademarks.