[PATCH 7/9] CMD: Current directory needs saving in the environment even for cmd /c [try2]

Jason Edmeades jason.edmeades at googlemail.com
Tue Sep 7 17:59:47 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

Try2 just skips this on WinNT4 as %CD% isnt supported there

Fixes bug 22715
---
 programs/cmd/batch.c                     |    7 ++++
 programs/cmd/builtins.c                  |    3 +-
 programs/cmd/tests/test_builtins.cmd     |   56 ++++++++++++++++++++++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |   16 ++++++++
 programs/cmd/wcmd.h                      |    1 +
 programs/cmd/wcmdmain.c                  |   18 +++++-----
 6 files changed, 91 insertions(+), 10 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-CMD-Current-directory-needs-saving-in-the-environment-.txt
Type: text/x-patch
Size: 6747 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100907/8aeb5402/attachment.bin>


More information about the wine-patches mailing list