Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Named directories expansion
- X-seq: zsh-users 7507
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Named directories expansion
- Date: Thu, 10 Jun 2004 08:43:26 -0700 (PDT)
- In-reply-to: <20040609162148.GA11140@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Sender: schaefer@xxxxxxxxxxxxxxxxxx
On Wed, 9 Jun 2004, DervishD wrote:
> list=(**/*~(/explicit/path|~X))
>
> Will the named dir be expanded inside the expression?
No.
> In the manual I've read that each word is checked to see if it starts
> with an unquoted '~', is that quoted inside a (...) expression?
It's not quoted, but it's also not the start of a word. "Word" here has
the very specific meaning of a shell-parser syntactic word, which means
that a word "starts" only immediately after an unquoted $IFS character, or
(as a special case) after a colon found to the right of the equal sign in
certain assignment expressions.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author