View Single Post
Old 08-07-2008   #1 (permalink)
Test


 
 

Script parameter problem

Hi,

there are two scripts

test1.ps1:
Quote:

> $Args
test2.ps1:
Quote:

> $i = "'1234 5678' 22 33 zzz"
> ./test1 $i
Running test2 -> Output
Quote:

> '1234 5678' 22 33 zzz
but it should be like
test3.ps1:
Quote:

> ./test1 '1234 5678' 22 33 zzz
Running test3 -> Output:
Quote:

> 1234 5678
> 22
> 33
> zzz
How can I use a normal string - without converting it to an array - as a
variable. Or I'm totally blind?
My System SpecsSystem Spec