mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
Fix quotes problem with well-placed shlex.quote
This commit is contained in:
parent
c196e2901c
commit
dc24f843fe
@ -53,6 +53,7 @@ def get_output(script, expanded):
|
|||||||
env = dict(os.environ)
|
env = dict(os.environ)
|
||||||
env.update(settings.env)
|
env.update(settings.env)
|
||||||
|
|
||||||
|
expanded = shlex.quote(expanded)
|
||||||
split_expand = shlex.split(expanded)
|
split_expand = shlex.split(expanded)
|
||||||
is_slow = split_expand[0] in settings.slow_commands if split_expand else False
|
is_slow = split_expand[0] in settings.slow_commands if split_expand else False
|
||||||
with logs.debug_time(u'Call: {}; with env: {}; is slow: {}'.format(
|
with logs.debug_time(u'Call: {}; with env: {}; is slow: {}'.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user