summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7ce12c349..35b7c03c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-22 Sven Wischnowsky <wischnow@zsh.org>
+
+ * 13706: Src/exec.c: skip redirections in execpline2() when
+ looking for the command code
+
2001-03-21 Bart Schaefer <schaefer@zsh.org>
* unposted: Functions/Prompts/prompt_bart_setup: Use the (S)
diff --git a/Src/exec.c b/Src/exec.c
index ce083da86..fa49c3137 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1189,11 +1189,11 @@ execpline2(Estate state, wordcode pcode,
execcmd(state, input, output, how, last1 ? 1 : 2);
else {
int old_list_pipe = list_pipe;
- Wordcode next = state->pc + (*state->pc);
+ Wordcode next = state->pc + (*state->pc), pc;
wordcode code;
state->pc++;
- code = *state->pc;
+ for (pc = state->pc; wc_code(code = *pc) == WC_REDIR; pc += 3);
mpipe(pipes);