4.[12]bsd csh && bug (with fix)
Arthur David Olson
ado at elsie.UUCP
Thu Apr 3 00:42:30 AEST 1986
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 at seismo.ARPA
DEC, VAX, Elsie & Ado are Digital, Borden & Shakespeare trademarks.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list