Page MenuHomeFreeBSD

D22099.id63516.diff
No OneTemporary

D22099.id63516.diff

Index: contrib/tcsh/sh.c
===================================================================
--- contrib/tcsh/sh.c
+++ contrib/tcsh/sh.c
@@ -237,6 +237,7 @@
int nofile = 0;
volatile int nverbose = 0;
volatile int rdirs = 0;
+ volatile int exitcode = 0;
int quitit = 0;
Char *cp;
#ifdef AUTOLOGOUT
@@ -1390,6 +1391,12 @@
if (targinp) {
+ /* If this -c command caused an error before, skip processing */
+ if (reenter && arginp) {
+ exitcode = 1;
+ goto done;
+ }
+
arginp = SAVE(targinp);
/*
* we put the command into a variable
@@ -1422,6 +1429,7 @@
*/
process(setintr);
+done:
/*
* Mop-up.
*/
@@ -1443,7 +1451,7 @@
}
record();
exitstat();
- return (0);
+ return exitcode;
}
void

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 20, 5:49 PM (18 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31854823
Default Alt Text
D22099.id63516.diff (792 B)

Event Timeline