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

Re: expandig var values at the command line



David Aspinwall wrote:

> > What is the caret for? I don't know this notation.
>
> According to the man page:
>           ${^spec}
>                Turn on the RC_EXPAND_PARAM option for the evalua-
>                tion  of  spec;  if the ^ is doubled, turn it off.
>                When this option is set, array expansions  of  the
>                form foo${xx}bar, where the parameter xx is set to
>                (a b c),  are  substituted  with  fooabar  foobbar
>                foocbar instead of the default fooa b cbar.
>
> I don't know why it isn't working for you.

I got it!
This is because in tcsh I was wrapping the dir names with {a,b,c}
and in zsh it uses parentheses and spaces, (a b c).

Now it is working.

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