mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
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:
parent
999e442d5c
commit
c3c1fb676b
@ -5111,7 +5111,7 @@ redirect(union node *redir, int flags)
|
|||||||
do {
|
do {
|
||||||
sv_pos++;
|
sv_pos++;
|
||||||
#if ENABLE_ASH_BASH_COMPAT
|
#if ENABLE_ASH_BASH_COMPAT
|
||||||
if (redir->nfile.type == NTO2)
|
if (tmp->nfile.type == NTO2)
|
||||||
sv_pos++;
|
sv_pos++;
|
||||||
#endif
|
#endif
|
||||||
tmp = tmp->nfile.next;
|
tmp = tmp->nfile.next;
|
||||||
|
Loading…
Reference in New Issue
Block a user