Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: converting parameter to words



Hi,

"Jack McKinney" <jackmc-zsh-users@xxxxxxxxxxx> writes:

[...]

> #!/bin/zsh
> 
> for i
> do
>   temp="$temp -r $i"
> done
> 
> command $temp


for i in ...
do
  temp=("$temp[@]" -r "$i")
done

command "$temp[@]"



HTH,
-- 
Ervin
						"Intelligenti pauca."



Messages sorted by: Reverse Date, Date, Thread, Author