www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13446] New: Can't use executeShell/escapeShellFileName to

https://issues.dlang.org/show_bug.cgi?id=13446

          Issue ID: 13446
           Summary: Can't use executeShell/escapeShellFileName to redirect
                    to file whose name starts with &
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

///////////////// test.d ////////////////
import std.process;

void main()
{
    executeShell(
        escapeShellCommand("echo foo") ~
        ">" ~
        escapeShellFileName("&out.txt"));
}
/////////////////////////////////////////

--
Sep 09 2014