NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/38584 (bin/sh: 'set -e' + pipe)
The following reply was made to PR bin/38584; it has been noted by GNATS.
From: Matthias Scheler <tron%NetBSD.org@localhost>
To: NetBSD GNATS <gnats-bugs%NetBSD.org@localhost>
Cc:
Subject: Re: bin/38584 (bin/sh: 'set -e' + pipe)
Date: Sat, 24 May 2008 17:33:58 +0100
The following change fixes the problem for me:
Index: eval.c
===================================================================
RCS file: /cvsroot/src/bin/sh/eval.c,v
retrieving revision 1.89
diff -u -r1.89 eval.c
--- eval.c 15 Feb 2008 17:26:06 -0000 1.89
+++ eval.c 24 May 2008 16:32:47 -0000
@@ -535,6 +535,9 @@
TRACE(("evalpipe: job done exit status %d\n", exitstatus));
}
INTON;
+
+ if (eflag && exitstatus)
+ exitshell(exitstatus);
}
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index