Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153194662
D22099.id63516.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
792 B
Referenced Files
None
Subscribers
None
D22099.id63516.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D22099: Merge from vendor: fix potential infinite loop in when executing -c command
Attached
Detach File
Event Timeline
Log In to Comment