diff options
-rw-r--r-- | shell/ash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 8f3143669..6de71f6d7 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8705,8 +8705,8 @@ evalcommand(union node *cmd, int flags) | |||
8705 | for (;;) { | 8705 | for (;;) { |
8706 | find_command(argv[0], &cmdentry, cmd_flag, path); | 8706 | find_command(argv[0], &cmdentry, cmd_flag, path); |
8707 | if (cmdentry.cmdtype == CMDUNKNOWN) { | 8707 | if (cmdentry.cmdtype == CMDUNKNOWN) { |
8708 | status = 127; | ||
8709 | flush_stderr(); | 8708 | flush_stderr(); |
8709 | status = 127; | ||
8710 | goto bail; | 8710 | goto bail; |
8711 | } | 8711 | } |
8712 | 8712 | ||
@@ -8812,12 +8812,13 @@ evalcommand(union node *cmd, int flags) | |||
8812 | 8812 | ||
8813 | out: | 8813 | out: |
8814 | popredir(cmd_is_exec); | 8814 | popredir(cmd_is_exec); |
8815 | if (lastarg) | 8815 | if (lastarg) { |
8816 | /* dsl: I think this is intended to be used to support | 8816 | /* dsl: I think this is intended to be used to support |
8817 | * '_' in 'vi' command mode during line editing... | 8817 | * '_' in 'vi' command mode during line editing... |
8818 | * However I implemented that within libedit itself. | 8818 | * However I implemented that within libedit itself. |
8819 | */ | 8819 | */ |
8820 | setvar("_", lastarg, 0); | 8820 | setvar("_", lastarg, 0); |
8821 | } | ||
8821 | popstackmark(&smark); | 8822 | popstackmark(&smark); |
8822 | } | 8823 | } |
8823 | 8824 | ||
@@ -10649,7 +10650,7 @@ readtoken1(int firstc, int syntax, char *eofmark, int striptabs) | |||
10649 | if (eofmark == NULL) { | 10650 | if (eofmark == NULL) { |
10650 | if ((c == '>' || c == '<') | 10651 | if ((c == '>' || c == '<') |
10651 | && quotef == 0 | 10652 | && quotef == 0 |
10652 | && len <= 2 | 10653 | && len <= 2 // THIS LIMITS fd to 1 char: N>file, but no NN>file! |
10653 | && (*out == '\0' || isdigit(*out)) | 10654 | && (*out == '\0' || isdigit(*out)) |
10654 | ) { | 10655 | ) { |
10655 | PARSEREDIR(); | 10656 | PARSEREDIR(); |