mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-10 10:25:23 +01:00
Expand '--foo=' with shell=False - Issue #1814
This commit is contained in:
parent
f685d01217
commit
9ed7d41488
@ -1041,7 +1041,7 @@ def compile_fun_shell(line):
|
|||||||
Logs.debug('action: %s', c.strip().splitlines())
|
Logs.debug('action: %s', c.strip().splitlines())
|
||||||
return (funex(c), dvars)
|
return (funex(c), dvars)
|
||||||
|
|
||||||
reg_act_noshell = re.compile(r"(?P<space>\s+)|(?P<subst>\$\{(?P<var>\w+)(?P<code>.*?)\})|(?P<text>\S+)", re.M)
|
reg_act_noshell = re.compile(r"(?P<space>\s+)|(?P<subst>\$\{(?P<var>\w+)(?P<code>.*?)\})|(?P<text>([^$ \t\n\r\f\v]|\$\$)+)", re.M)
|
||||||
def compile_fun_noshell(line):
|
def compile_fun_noshell(line):
|
||||||
"""
|
"""
|
||||||
Creates a compiled function to execute a process without a sub-shell
|
Creates a compiled function to execute a process without a sub-shell
|
||||||
@ -1068,7 +1068,7 @@ def compile_fun_noshell(line):
|
|||||||
merge = False
|
merge = False
|
||||||
continue
|
continue
|
||||||
elif m.group('text'):
|
elif m.group('text'):
|
||||||
app('[%r]' % m.group('text'))
|
app('[%r]' % m.group('text').replace('$$', '$'))
|
||||||
elif m.group('subst'):
|
elif m.group('subst'):
|
||||||
var = m.group('var')
|
var = m.group('var')
|
||||||
code = m.group('code')
|
code = m.group('code')
|
||||||
|
Loading…
Reference in New Issue
Block a user