Issue 43567 - Native w32 processes called by cygwin processes might loose environment variable changes
Summary: Native w32 processes called by cygwin processes might loose environment varia...
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 680m81
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-26 03:59 UTC by quetschke
Modified: 2013-08-07 15:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
syscall.pl (190 bytes, patch)
2005-02-26 04:01 UTC, quetschke
no flags Details | Diff
makefile.mk (125 bytes, patch)
2005-02-26 04:02 UTC, quetschke
no flags Details | Diff
nmake makefile (50 bytes, patch)
2005-02-26 04:02 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2005-02-26 03:59:56 UTC
Sorry for the the loose description, but the real problem is still unclear, but
the resulting problem can be seen in issue 43225.

With the following attached files the problem can be reproduced like this:

First the failing example. (Cygwin perl calls dmake calls nmake.)
[4nt-shell]perl syscall.pl
echo C:\4NT401\4NT.EXE here
C:\4NT401\4NT.EXE here
set OS=egal && set GUI=gui && nmake  /f f.mk
(nmake disclaimer removed)
        echo %OS% %GUI
egal gui
        echo WNT gui
WNT gui


Now the prove that it works when dmake is called directly and calls nmake:

[4nt-shell]dmake
echo C:\4NT401\4NT.EXE here
C:\4NT401\4NT.EXE here
set OS=egal && set GUI=gui && nmake  /f f.mk
(nmake disclaimer removed)
        echo %OS% %GUI
egal gui
        echo egal gui
egal gui


It seems the problem does not arise for all variables, but at least OS and PWD
(see tg_ext.mk" line 112) seem to be affected.
Comment 1 quetschke 2005-02-26 04:01:27 UTC
Created attachment 23043 [details]
syscall.pl
Comment 2 quetschke 2005-02-26 04:02:00 UTC
Created attachment 23044 [details]
makefile.mk
Comment 3 quetschke 2005-02-26 04:02:33 UTC
Created attachment 23045 [details]
nmake makefile
Comment 4 bhanyslebo 2010-11-10 17:26:10 UTC
Created attachment 73483
Comment 5 Rob Weir 2013-07-30 02:40:10 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.