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

Re: scripting problem: vi and multiple arguments



"Michael Barnes" <mibarnes@xxxxxx> writes:
> use $EDFILES as an array, im not sure how that gets set but do something
> like
> 
> EDFILES=(*.c)
> EDFILES=($EDFILES *.h)
> then
> 
> vi $EDFILES

Thanks... That's exactly what I needed.

I went from building EDIFLES (in the loop) like:

EDFILES=`echo "$EDFILES $i"`

to

EDFILES=($EDFILES $i)

and everything became golden.

Thanks again;
Jason

-- 
"Where will I go?"  "Somewhere where they know nothing about computing...
Where they wouldn't know a RAM chip from a potato chip!"
"But I don't want to visit Microsoft!"  --the PFY and the BOFH
Jason Price          jprice@xxxxxxxxxx          Theta Xi, Beta Alpha 449



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