mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-01 14:53:30 +00:00
Expand env vars throughout command lines
When converting strings to command lines interpret env vars in all the parts of the command line not just the first item. Fixes #1535
This commit is contained in:
parent
8969206450
commit
5953c2097d
1 changed files with 2 additions and 3 deletions
|
|
@ -37,9 +37,8 @@ def to_bool(x):
|
|||
|
||||
|
||||
def to_cmdline(x):
|
||||
ans = shlex.split(x)
|
||||
ans[0] = os.path.expandvars(os.path.expanduser(ans[0]))
|
||||
return ans
|
||||
return list(map(
|
||||
lambda y: os.path.expandvars(os.path.expanduser(y)), shlex.split(x)))
|
||||
|
||||
|
||||
def python_string(text):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue