You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running command with 1+ arguments against a docker host, the command automatically fails with line 1: syntax error: unterminated quoted string. The is because the quote method in backend/base.py is using pipes.quote (which is only compatible with posix systems) to generate quotes, and sometimes uses single quotes to enclose an arg. The default shell in windows is cmd, which does not accept single quoted args (only double quoted). On windows, a more accurate command would be something like this:
@staticmethoddefquote(command, *args):
defanon_1(arg):
ifre.match(r'/("|\s|\')', arg) !=None:
returnargarg=re.sub('"', '\"', arg)
return'"%s"'% (arg)
ifargs:
returncommand%tuple(anon_1(a) forainargs)
# return command % tuple(pipes.quote(a) for a in args)returncommand
The text was updated successfully, but these errors were encountered:
When running command with 1+ arguments against a docker host, the command automatically fails with
line 1: syntax error: unterminated quoted string
. The is because thequote
method inbackend/base.py
is usingpipes.quote
(which is only compatible with posix systems) to generate quotes, and sometimes uses single quotes to enclose an arg. The default shell in windows iscmd
, which does not accept single quoted args (only double quoted). On windows, a more accurate command would be something like this:The text was updated successfully, but these errors were encountered: