Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-17 20:16:10 +0400
committerErik Andersen <andersen@codepoet.org>2000-04-17 20:16:10 +0400
commite5b6c7dd9cb32852a7f5b19a9855cf3c32543396 (patch)
treeafe963cde5e3882b8785c963d7d1ec07d458a85a /sh.c
parent4fd10fc73be4ce707c7d55f608d47894a2d1b12c (diff)
More updates to the docs, and fixes to sync things with the docs.
-Erik
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh.c b/sh.c
index 44ffe968f..bd95ba761 100644
--- a/sh.c
+++ b/sh.c
@@ -961,9 +961,12 @@ int shell_main(int argc, char **argv)
fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT);
fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
} else {
+ if (*argv[1]=='-') {
+ usage("sh\n\nlash -- the BusyBox LAme SHell (command interpreter)\n");
+ }
input = fopen(argv[1], "r");
if (!input) {
- fatalError("A: Couldn't open file '%s': %s\n", argv[1],
+ fatalError("sh: Couldn't open file '%s': %s\n", argv[1],
strerror(errno));
}
}