May 09, 2014 [Issue 12722] executeShell incorrectly handling escaped quotes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12722 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- Not sure if an actual bug, but in any case there's escapeShellCommand for this. It should probably be mentioned in the executeShell docs (escapeShellFileName docs reference executeShell, but not the other way around). -- |
May 10, 2014 [Issue 12722] executeShell incorrectly handling escaped quotes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12722 --- Comment #2 from Josh <moonburntm@gmail.com> --- It seems that executeShell("echo \"quoted statement 1\" \"quoted statement 1\" \"quoted statement 3\"").output returns "quoted statement 1" "quoted statement 1" "quoted statement 3 whereas executeShell("echo \"quoted statement 1\" \"quoted statement 1\" \"quoted statement 3\"\"").output returns "quoted statement 1" "quoted statement 1" "quoted statement 3" So it's only the last one that doesn't escape properly. -- |
Copyright © 1999-2021 by the D Language Foundation