From: SF/projects/mingw n. l. <min...@li...> - 2011-08-15 17:10:35
|
Bugs item #3391275, was opened at 2011-08-14 01:20 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3391275&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MSYS Group: Known Feature >Status: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: Orgad Shaneh (orgads) Assigned to: Nobody/Anonymous (nobody) Summary: TEMP env var is corrupted when running external app Initial Comment: On my machine, TEMP environment variable is defined as 'D:\Temp'. When I run msys, 'echo $TEMP' gives '/tmp', and 'msysmnt' shows that D:\Temp is mounted on /tmp. That's fine. When I run an external application from msys, the TEMP variable is modified to 'D:/Temp'. To reproduce: Run msys, from it, run cmd /c "echo %TEMP%" ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2011-08-15 13:10 Message: Even so, I have no issue with the sample given with either running in a cmd.exe environment or a MSYS bash environment. I tested both the MSYS dependent perl and the ActiveState version of perl. Therefore I've closed the ticket but feel free to comment if you have more information. ---------------------------------------------------------------------- Comment By: Keith Marshall (keithmarshall) Date: 2011-08-15 10:49 Message: What perl are you trying to run, in your example? If it is the MSYS perl, then you should be running it from the MSYS shell, *not* from cmd.exe. Attempting to run *any* MSYS program from cmd.exe is an ID-ten-T user error; such usage is unsupported. FWIW, your example WJFFM, when correctly run using MSYS perl, invoked from the MSYS shell prompt. ---------------------------------------------------------------------- Comment By: Orgad Shaneh (orgads) Date: 2011-08-15 09:50 Message: Consider the following perl script: $TDIR=$ENV{TEMP}; $fname = "$TDIR\\hello.txt"; open (test, ">$fname"); print test "Hello\n"; close (test); Running on cmd, NOT running under msys... ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2011-08-15 09:33 Message: You fail to say how this affects your use of native programs? I.E.: Why are you concerned about D:/Temp instead of D:\Temp? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3391275&group_id=2435 |