Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: expandig var values at the command line
- X-seq: zsh-users 2488
- From: dado <dado@xxxxxxx>
- To: David Aspinwall <aspinwall@xxxxxxxxxxxx>, zsh users list <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: expandig var values at the command line
- Date: Fri, 20 Aug 1999 18:21:45 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: Pacific Data Images
- References: <37BDCA01.FBB724E1@xxxxxxx> <upv0i6qfp.fsf@xxxxxxxxxxxx> <37BDE3F7.F11A7167@xxxxxxx> <uwvuqxa9q.fsf@xxxxxxxxxxxx>
- Sender: dado@xxxxxxx
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