Pash-Project / Pash

An Open Source reimplementation of Windows PowerShell, for Mono.
https://groups.google.com/group/pash-project
BSD 3-Clause "New" or "Revised" License
516 stars 54 forks source link

Pass arrays as separate arguments to external application #398

Closed aheubusch closed 9 years ago

aheubusch commented 9 years ago

Changes current behavior

PASH C:\> $array="one","two"
PASH C:\> echoargs.exe $array
Arg 0 is <one two>

Command line:
"C:\echoargs.exe" "one two"

PASH C:\>

to

PASH C:\> $array="one","two"
PASH C:\> echoargs.exe $array
Arg 0 is <one>
Arg 1 is <two>

Command line:
"C:\echoargs.exe" one two

PASH C:\>

PowerShell for comparsion

PS C:\> $array="one","two"
PS C:\> echoargs.exe $array
Arg 0 is <one>
Arg 1 is <two>

Command line:
"C:\EchoArgs.exe"  one two

PS C:\>
mrward commented 9 years ago

Would you be able to add some tests for this change?