ash: fix mishandling of bash-style redirects

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Chris Metcalf 2010-01-08 13:18:06 +01:00 committed by Denys Vlasenko
parent 999e442d5c
commit c3c1fb676b

View File

@ -5111,7 +5111,7 @@ redirect(union node *redir, int flags)
do {
sv_pos++;
#if ENABLE_ASH_BASH_COMPAT
if (redir->nfile.type == NTO2)
if (tmp->nfile.type == NTO2)
sv_pos++;
#endif
tmp = tmp->nfile.next;