diff options
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -961,9 +961,12 @@ int shell_main(int argc, char **argv) | |||
961 | fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT); | 961 | fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT); |
962 | fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n"); | 962 | fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n"); |
963 | } else { | 963 | } else { |
964 | if (*argv[1]=='-') { | ||
965 | usage("sh\n\nlash -- the BusyBox LAme SHell (command interpreter)\n"); | ||
966 | } | ||
964 | input = fopen(argv[1], "r"); | 967 | input = fopen(argv[1], "r"); |
965 | if (!input) { | 968 | if (!input) { |
966 | fatalError("A: Couldn't open file '%s': %s\n", argv[1], | 969 | fatalError("sh: Couldn't open file '%s': %s\n", argv[1], |
967 | strerror(errno)); | 970 | strerror(errno)); |
968 | } | 971 | } |
969 | } | 972 | } |