Closed
Description
When ParseEnv is true, variables like
line := "ssh 127.0.0.1 "echo $JAVA_HOME""
is parsed (e.g. shellwords.Parse(line)) into one element slice:
["ssh", "127.0.0.1", "echo", "/usr/local/jdk1.8.0_171"]
But the expected result should be a 3-element slice:
["ssh", "127.0.0.1", "echo /usr/local/jdk1.8.0_171"]
line := "ansible 127.0.0.1 -m shell -a "ps -ef | grep console""
is parsed (e.g. shellwords.Parse(line)) into one element slice:
["ansible", "127.0.0.1", " -m", "shell", "-a", "ps", "-ef"]
But the expected result should be a 6-element slice:
["ansible", "127.0.0.1", " -m", "shell", "-a", "ps -ef | grep console"]
Metadata
Metadata
Assignees
Labels
No labels