aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sh.c b/sh.c
index 77efc6aac..b10614259 100644
--- a/sh.c
+++ b/sh.c
@@ -1447,10 +1447,7 @@ int shell_main(int argc_l, char **argv_l)
1447 fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n"); 1447 fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
1448 } else if (local_pending_command==NULL) { 1448 } else if (local_pending_command==NULL) {
1449 //fprintf(stdout, "optind=%d argv[optind]='%s'\n", optind, argv[optind]); 1449 //fprintf(stdout, "optind=%d argv[optind]='%s'\n", optind, argv[optind]);
1450 input = fopen(argv[optind], "r"); 1450 input = xfopen(argv[optind], "r");
1451 if (!input) {
1452 fatalError("%s: %s\n", argv[optind], strerror(errno));
1453 }
1454 } 1451 }
1455 1452
1456 /* initialize the cwd -- this is never freed...*/ 1453 /* initialize the cwd -- this is never freed...*/