<p>Op 21 okt. 2011 05:12 schreef "Don Quixote de la Mancha" <<a href="mailto:quixote@dulcineatech.com">quixote@dulcineatech.com</a>> het volgende:<br>
><br>
> It would be best if this were cross-platform.<br>
><br>
> On POSIX systems, the PWD environment variable is set from the current<br>
> working directory of the shell.<br>
><br>
> The current working directory is also a POSIX concept.  Do Win32 and<br>
> Win64 have an equivalent?</p>
<p>Yes, I know of two: %CD% and the much better GetCurrentWorkingDirectoryW and subsequent conversion to UTF-8.</p>
<p>><br>
> Windows does have environment variables but I don't think it has<br>
> anything like $PWD (or, for Windows, %PWD%).</p>
<p>I think %CD% is quite similar to $PWD.</p>
<p>Ruben</p>
<p>><br>
> But do Windows programs have a current working directory that is part<br>
> of the process state?<br>
><br>
> If so, CLang's Windows driver could look up the Win32 or Win64 current<br>
> working directory and pass it down the line, or perhaps create a %PWD%<br>
> environment variable.<br>
><br>
> What other operating systems do we support that are neither Windows nor POSIX?<br>
><br>
> --<br>
> Don Quixote de la Mancha<br>
> Dulcinea Technologies Corporation<br>
> Software of Elegance and Beauty<br>
> <a href="http://www.dulcineatech.com">http://www.dulcineatech.com</a><br>
> <a href="mailto:quixote@dulcineatech.com">quixote@dulcineatech.com</a><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</p>