Skip to content

Problem with "system LIST" on Win32 #852

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

Closed
p5pRT opened this issue Nov 15, 1999 · 4 comments
Closed

Problem with "system LIST" on Win32 #852

p5pRT opened this issue Nov 15, 1999 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Nov 15, 1999

Migrated from rt.perl.org#1780 (status was 'resolved')

Searchable as RT1780$

@p5pRT
Copy link
Author

p5pRT commented Nov 15, 1999

From Paul.Moore@uk.origin-it.com

There seems to be a problem with the "system LIST" command on Win32.

The following 1-line test program

  system "$^X -e \"print 1\"";

correctly prints a "1".

The (supposedly equivalent)

  system $^X, "-e", "print 1";

prints nothing.

Perl Info


Site configuration information for perl 5.00503:

Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86
    uname=''
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cl.exe', optimize='-O2 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O2 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT '
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
    libpth=D:\VisualStudio\VC98\lib
    libs=E:\CDs\General\Libraries\Lib\MD\libdes.lib oldnames.lib
kernel32.lib user32.lib gdi32.lib  winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib  oleaut32.lib netapi32.lib uuid.lib wsock32.lib
mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib PerlCRT.lib
    libc=PerlCRT.lib, so=dll, useshrplib=yes, libperl=perl.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-machine:x86'

Locally applied patches:
    


@INC for perl 5.00503:
    C:\Applications\Perl\lib/MSWin32-x86
    C:\Applications\Perl\lib
    C:\Applications\Perl\site\lib/MSWin32-x86
    C:\Applications\Perl\site\lib
    .


Environment for perl 5.00503:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Oracle\Ora81\bin;C:\Program
Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\UTILS;C:\Applicatio
ns\Perl\Bin;C:\Applications\Perl\Bin\MSWin32-x86;C:\VisualStudio\Common\Tool
s\WinNT;C:\VisualStudio\Common\MSDev98\Bin;C:\VisualStudio\Common\Tools;C:\V
isualStudio\VC98\bin;C:\Program
Files\Mts;C:\MSSQL7\BINN;C:\orant\bin;C:\DMINT40\Win32\Bin;C:\Program
Files\CWNT;C:\NTRESKIT;
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 2000

From [Unknown Contact. See original ticket]

------- Forwarded Message

Return-Path​: Paul.Moore@​uk.origin-it.com
From​: "Moore, Paul" <Paul.Moore@​uk.origin-it.com>
Subject​: RE​: Perlbug ID 19991115.005​: Problem with "system LIST" on Win32
Date​: Wed, 13 Dec 2000 16​:32​:38 -0000

From​: Stephen P. Potter [mailto​:spp@​spotter.yi.org]

During a cleanup of the perlbug database, this report you
filed was found. Can you please describe what you feel is
the current status of this bug, whether it has been fixed
in a newer version, and whether this report should remain
open or can be closed?

-spp

There seems to be a problem with the "system LIST" command on Win32.

The following 1-line test program

 system "$^X \-e \\"print 1\\"";

correctly prints a "1".

The (supposedly equivalent)

 system $^X\, "\-e"\, "print 1";

prints nothing.

Thanks for the reminder. The problem is still outstanding in 5.6.0. As I
understand it, this requires a fairly significant reorganisation of the
internals of system/exec for Win32 (reflecting the fact that on Windows,
executing a command line is the fundamental operation, as opposed to Unix
where executing an argv array is the fundamental operation).

When I raised the bug, I looked at what would be involved in fixing it, but
it's beyond my capabilities/available time.

I believe that this bug should remain open.

Paul.

------- End of Forwarded Message

@p5pRT
Copy link
Author

p5pRT commented Jul 6, 2003

From @cwest

Tested on 5.6.1 on win32 with success.

Marking resolved.

@p5pRT p5pRT closed this as completed Jul 6, 2003
@p5pRT
Copy link
Author

p5pRT commented Jul 6, 2003

@cwest - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant