• Jason Edmeades's avatar
    cmd: Handle single line 'if' as nested if or with redirects. · 58d21b33
    Jason Edmeades authored
    A single line if statement causes problems when it has redirects
    and/or continuation type operators (|, &&, || etc) because it is
    expected that if there is more than one command in the 'if', then it
    will use brackets. This patch changes the 'if' parsing to emulate
    brackets at a continuation character. In addition, 'for' and 'if'
    statements do not have their output redirected immediately, instead it
    is redirected on the individual commands being executed not the
    statement itself. We were opening the redirect once for the 'if' and
    once for the processing of the statement inside the if.
    Signed-off-by: 's avatarJason Edmeades <us@edmeades.me.uk>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    58d21b33
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...