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

expandig var values at the command line



I tcsh I use to have a variable set to a list of directories:

set dirs = '{dir1,dir2,dir3,...,dirN}'

then I would do:

ls /path/path/$dirs/path

and I would get the contents of those directories.

I can't get similar behavior in zsh.
It is expanding the variable once, and treating its content as a single
string
instead of expanding to the names of each directory.

Any idea how I can get that to work?

Thanks.

--
____________________________________________________________________________
d a d o    f e i g e n b l a t t                       direct (650) 846-8386
dado@xxxxxxx - Technical Lighter                   front desk (650) 846-8100
PDI - Palo Alto, CA                                       fax (650) 846-8101





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