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
ActivePerl splits arguments passed to exec() on whitespace #8026
Comments
From pfusik@op.plThis is a bug report for perl from pfusik@op.pl, The problem is that the arguments passed to exec() are not passed Example: system() works fine: Flags: Site configuration information for perl v5.8.0: Configured by ActiveState at Mon Mar 31 00:45:28 2003. Summary of my perl5 (revision 5 version 8 subversion 0) configuration: Locally applied patches: @INC for perl v5.8.0: Environment for perl v5.8.0: PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\U;C:\JAVA\JDK\BIN;C:\C\DJGPP\BIN;C |
From @schwernOn Tue, Jul 19, 2005 at 10:45:34AM -0700, Piotr Fusik wrote:
<snip>
Thank you for your report. That's an old version of Perl. Try upgrading and see if the bug is still -- |
The RT System itself - Status changed from 'new' to 'open' |
From @steve-m-hayMichael G Schwern wrote:
I see the same behaviour using current perls. It appears that you need to add some double quotes into the string that perl -e "exec$^X,'-e','print+join+q{,},@ARGV',q{\"foo boo bar\"}" prints foo boo bar as expected. (You can also use the same idea to avoid the need for the ugly + signs perl -e "exec $^X, '-e', q{\"print join ',', @ARGV\"}, q{\"foo boo bar\"}" also works fine.) Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. |
From @gisleSteve Hay <steve.hay@uk.radan.com> writes:
Shouldn't perl do this automatically? The behaviour of exec and system should anyway be consistent so this --Gisle |
From @jkeenanOn Wed Jul 20 02:41:11 2005, gisle@ActiveState.com wrote:
Discussion in this ticket petered out seven years ago. Is there anyone, Thank you very much. |
From @bulk88On Sun Oct 21 16:05:46 2012, jkeenan wrote:
I'm not sure, but Win32 specific shell interpretation might be involved |
From @janduboisOn Sun, 21 Oct 2012, James E Keenan via RT wrote:
The difference in behavior is due to win32_spawnvp() using a special If somebody tackles this, please check out the t/win32/system_tests file Bonus points for fixing this for the list form of readpipe() as well. :) Cheers, |
Migrated from rt.perl.org#36594 (status was 'open')
Searchable as RT36594$
The text was updated successfully, but these errors were encountered: