From 6bfc325a94de11952079c703d7fc23efa7d14241 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 7 Mar 2002 08:38:44 +0000 Subject: don't try to build the redirection string for the loops (for, foreach, select) (16776) --- Src/Zle/zle_tricky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 788f5f8ec..43d234843 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1086,7 +1086,7 @@ get_comp_string(void) else linarr = 0; } - if (inredir) { + if (inredir && IS_REDIROP(tok)) { rdstr = rdstrbuf; if (tokfd >= 0) sprintf(rdop, "%d%s", tokfd, tokstrings[tok]); -- cgit 1.4.1