Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: syntax question
- X-seq: zsh-users 23269
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: syntax question
- Date: Wed, 21 Mar 2018 18:30:52 -0700
- Cc: zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zYjWstDyVZakr1oKRvTwp6x5RtTFAxmo+ZrnusquH7U=; b=tUtYrEitnIsZVI/S9tBIgSDpDFH63C5XL7DDnGS14YSqmomb14Xw9BvToZBpsUfS3x UlYeasn8Me92twyA8wx7B4uwnJi4b2djKhoYItcZZtXYp0sSSELxL6flmEZ1tAXRIxxB Ar6OQ4TqKtPQMy66U7eIlloqV4ilQ8fCqiHNEts1X4kwjLq3uUqHNJ7BXRoHZgw6hBTb igD1Tf3nkUmqDdxQ8nSvLu++fkDIZnyAFc5/RmnNxJbq3+WA1z/nr+TsNbHeFjBHAYZR PK8gTQQVbxTO9wMx2PrPaMa4efqbzjlmyqO+NlmjJgp5w6wC78s0ipOsZMxTvc2QvZAY D5hA==
- In-reply-to: <f53fb4de-0df9-610e-cbc5-784d37f1f558@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <f53fb4de-0df9-610e-cbc5-784d37f1f558@eastlink.ca>
On Wed, Mar 21, 2018 at 4:15 PM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> ${${(z)string}[1]}
>
> ${(z)string[1]}
>
> ... How can that mean anything different?
Operator precedence. The second one is equivalent to
${(z)${string[1]}}, as you observed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author