[PATCH 6/7] CMD: Current directory needs saving in the environment even for cmd /c
Jason Edmeades
jason.edmeades at googlemail.com
Fri Sep 3 18:47:53 CDT 2010
The current directory locations (=C: environment variable for example)
are used by endlocal and hence need to be available should a command
script launched with /c need to issue endlocal. Similarly, endlocal
is implied at the end of a script
Note: The changes to open stderr are due to an odd bug whereby stdout
was getting corrupted after the cmd.exe /c test - without this called
programs fail to inherit stdout!
Fixes bug 22715
---
programs/cmd/batch.c | 7 ++++
programs/cmd/builtins.c | 3 +-
programs/cmd/tests/batch.c | 15 ++++++++--
programs/cmd/tests/test_builtins.cmd | 46 ++++++++++++++++++++++++++++++
programs/cmd/tests/test_builtins.cmd.exp | 16 ++++++++++
programs/cmd/wcmd.h | 1 +
programs/cmd/wcmdmain.c | 18 ++++++------
7 files changed, 93 insertions(+), 13 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-CMD-Current-directory-needs-saving-in-the-environment-.txt
Type: text/x-patch
Size: 8236 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100903/40adf2f3/attachment-0001.bin>
More information about the wine-patches
mailing list