mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 03:11:15 +02:00
skip redirections in execpline2() when looking for the command code (13706)
This commit is contained in:
parent
1ddc7c72e5
commit
db0e5c2d8b
2 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue