Quote shell variable values (#12759)
This updates logic which sets shell variables to quote the values, which is necessary when the value contains a space (e.g. PATH).
This commit is contained in:
parent
14ef0c238e
commit
5eac8130b3
@ -492,8 +492,8 @@ def shell_modifications(self, shell='sh'):
|
||||
if new is None:
|
||||
cmds += _shell_unset_strings[shell].format(name)
|
||||
else:
|
||||
cmds += _shell_set_strings[shell].format(name,
|
||||
new_env[name])
|
||||
cmds += _shell_set_strings[shell].format(
|
||||
name, cmd_quote(new_env[name]))
|
||||
return cmds
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user