public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc5f838
)
Don't report a failure exit code on EOF or 'exit' command in batch mode.
author
David Given
<dg@cowlark.com>
Sun, 15 Mar 2015 11:19:30 +0000
(12:19 +0100)
committer
David Given
<dg@cowlark.com>
Sun, 15 Mar 2015 11:19:30 +0000
(12:19 +0100)
Standalone/ucp.c
patch
|
blob
|
history
diff --git
a/Standalone/ucp.c
b/Standalone/ucp.c
index
4cd2d0c
..
11c8585
100644
(file)
--- a/
Standalone/ucp.c
+++ b/
Standalone/ucp.c
@@
-53,7
+53,7
@@
int main(argc, argval)
int interactive;
int pending_line = 0;
struct filesys fsys;
- int j, retc;
+ int j, retc
= 0
;
/*-- char *argv[5];--*/
/*
@@
-87,7
+87,7
@@
int main(argc, argval)
printf("unix: ");
if (fgets(line, 128, stdin) == NULL) {
xfs_end();
- exit(
1
);
+ exit(
retc
);
}
}
@@
-126,7
+126,7
@@
int main(argc, argval)
switch (match(cmd)) {
case 0: /* exit */
xfs_end();
- exit(
1
);
+ exit(
retc
);
case 1: /* ls */
if (*arg1)