This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
preserve numericness of system() args on Win32
authorZefram <zefram@fysh.org>
Fri, 22 Dec 2017 05:32:41 +0000 (05:32 +0000)
committerZefram <zefram@fysh.org>
Fri, 22 Dec 2017 05:32:41 +0000 (05:32 +0000)
commit8fe3452cc6ac7af8c08c2044cd3757018a9c8887
tree63d395f3905741a85cb178ee5b10f566e88c17ab
parentaecacd448cd91d195bb2413fdd04568438514017
preserve numericness of system() args on Win32

On Windows there's a nasty variation in the meaning of arguments
to Perl's system(), in which a numeric first argument isn't used as
part of the command to run, but instead selects between two different
operations to perform with the command (whether to wait for the command
to complete or not).  Therefore the reduction of argument scalars to
their operative values in the parent process, which was added in commit
64def2aeaeb63f92dadc6dfa33486c1d7b311963, needs to preserve numericness
of arguments on Windows.  Fixes [perl #132633].
pp_sys.c