Bug 13446 – Can't use executeShell/escapeShellFileName to redirect to file whose name starts with &

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-09-09T14:16:00Z
Last change time
2014-09-19T19:39:00Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-09-09T14:16:01Z
///////////////// test.d //////////////// import std.process; void main() { executeShell( escapeShellCommand("echo foo") ~ ">" ~ escapeShellFileName("&out.txt")); } /////////////////////////////////////////
Comment #1 by dlang-bugzilla — 2014-09-09T14:40:50Z
Comment #2 by github-bugzilla — 2014-09-19T19:39:00Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/337d82bb37266e57b30607fcd8fc0a826b74690e fix Issue 13446 - Can't use executeShell/escapeShellFileName to redirect to file whose name starts with & Discovered and verified by -version=unittest_burnin https://github.com/D-Programming-Language/phobos/commit/d12ab1cf38dcb019fc10f69b2c921c8456dae37a Merge pull request #2503 from CyberShadow/pull-20140909-141704 fix Issue 13446 - Can't use executeShell/escapeShellFileName to redirect to file whose name starts with &