Op 21 okt. 2011 05:12 schreef "Don Quixote de la Mancha" <
[email protected]> het volgende:
>
> It would be best if this were cross-platform.
>
> On POSIX systems, the PWD environment variable is set from the current
> working directory of the shell.
>
> The current working directory is also a POSIX concept.  Do Win32 and
> Win64 have an equivalent?

Yes, I know of two: %CD% and the much better GetCurrentWorkingDirectoryW and
subsequent conversion to UTF-8.

>
> Windows does have environment variables but I don't think it has
> anything like $PWD (or, for Windows, %PWD%).

I think %CD% is quite similar to $PWD.

Ruben

>
> But do Windows programs have a current working directory that is part
> of the process state?
>
> If so, CLang's Windows driver could look up the Win32 or Win64 current
> working directory and pass it down the line, or perhaps create a %PWD%
> environment variable.
>
> What other operating systems do we support that are neither Windows nor
POSIX?
>
> --
> Don Quixote de la Mancha
> Dulcinea Technologies Corporation
> Software of Elegance and Beauty
> http://www.dulcineatech.com
> [email protected]
> _______________________________________________
> cfe-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to