New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system/qx in thread uses wrong %ENV #8736
Comments
From @jdheddenCreated by @jdheddenIf a thread makes changes to %ENV and then uses 'qx/system', In other words, when run in a thread 'qx/system' does not The following code illustrates this: #!/usr/bin/perl use strict; use threads; $ENV{'MAIN'} = 'ENV{MAIN} set in main thread'; threads->create(sub { $ENV{'THRD'} = 'ENV{THRD} set in child thread'; print("\n"); # EOF The above produces the following output: MAIN: ENV{MAIN} set in main thread THRD: ENV{MAIN} set in main thread MAIN: ENV{MAIN} set in main thread Perl Info
|
From @jdhedden
Is this on anyone's TODO list? (Or did it slip through the cracks?) ____________________________________________________________________________________ |
From @janduboisOn Mon, 5 Feb 2007 14:08:12 -0800 (PST), "Jerry D. Hedden"
This should not be happening on Windows. The code in win32_spawnvp() I'm not sure if you want to tackle just the environment variable issue Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @jdheddenJerry D. Hedden wrote:
Jan Dubois wrote:
Okay. I didn't test it on Win32, just Cygwin. (I presume it
I hope you're speaking to others on the list when you say ____________________________________________________________________________________ |
From @janduboisOn Mon, 5 Feb 2007 14:43:05 -0800 (PST), "Jerry D. Hedden"
Sorry, I did not want to discourage you from attacking the %ENV problem; Personally, I won't be able to do any work on this particular issue. It may be worthwhile to fix the %ENV issue and leave the working Cheers, |
From guest@guest.guest.xxxxxxxxDear folks, I hadn't kept track of this, and a colleaguejust brought this forum The problem originated from code I was writing for Linux and AIX. So, Just wanted to add that thought. Kind regards Derek Jones (scunacc@yahoo.com) On Mon Feb 05 15:07:18 2007, jdb wrote:
|
Migrated from rt.perl.org#41222 (status was 'open')
Searchable as RT41222$
The text was updated successfully, but these errors were encountered: