[Bug 16968] New: environment variables not passed across to commands that are run with popen

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 17 04:15:30 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=16968

           Summary: environment variables not passed across to commands that
                    are run with popen
           Product: Wine
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: lkcl at lkcl.net


this is the python test from test_os.py, but it should work equally
as well in straight c-code.  the only reason this test _happened_
to be run at all is because i have msys installed.  normally, under
windows, this test would be entirely skipped.

    # Bug 1110478
    def test_update2(self):
        if os.path.exists("/bin/sh"):
            os.environ.update(HELLO="World")
            value = os.popen("/bin/sh -c 'echo $HELLO'").read().strip()
            self.assertEquals(value, "World")


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list