[perl #35365] [PATCH] allow array of args for spawnw

2 views
Skip to first unread message

Jeff Horwitz

unread,
May 9, 2005, 2:32:53 PM5/9/05
to bugs-bi...@rt.perl.org
# New Ticket Created by Jeff Horwitz
# Please include the string: [perl #35365]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=35365 >


the attached patch adds a new signature for spawnw so it can take a PMC
array of arguments rather than a single string. with this, parrot can
support perl's system($cmd) as well as system(@args). tests are
included, though i only have unix platforms to test on right now.

-jeff

spawnw-array.patch

Leopold Toetsch

unread,
May 10, 2005, 3:54:49 AM5/10/05
to perl6-i...@perl.org
Jeff Horwitz <parrotbug...@parrotcode.org> wrote:

> the attached patch adds a new signature for spawnw so it can take a PMC
> array of arguments rather than a single string.

Thanks, applied - this one, there was a second mail with a patch.

Please note that patches to platform code need special consideration WRT
other platforms.

Patches to config/gen/platform/generic/ need at least a dummy
implementation in other platforms that don't inherit the generic version
of the platform file. This is in this case additionally:

$ ls config/gen/platform/*/exec.c
config/gen/platform/ansi/exec.c config/gen/platform/win32/exec.c

I've put in an empty stub for both, implementations for win32 are
welcome.

leo

Reply all
Reply to author
Forward
0 new messages