www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13477] New: std.process should ignore unnamed service


          Issue ID: 13477
           Summary: std.process should ignore unnamed service variables on
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Windows uses the environment block to keep track of the individual drives'
current directories (to allow the command "X:" to return to drive X's current
directory). These service variables can be seen in the output of the "set"

C:\> set

std.process.environment.toAA() should, however, ignore them, since:

1) Only one such variable will be stored (with an empty name), as since they
have the same name, previous values will be overwritten in the AA.
2) Setting them results an error, which unnecessarily complicates saving and
restoring the entire environment.

Sep 14 2014