Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Precedence of operations in [[
- X-seq: zsh-users 23793
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: Precedence of operations in [[
- Date: Mon, 3 Dec 2018 15:57:55 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181203155758euoutp01e35d958f3c4b3a29f52a516c43ec2e9d~s3dS_pTxb2992029920euoutp01e
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1543852678; bh=752XHoNuuHSBCtoRkVnNZJ7kVKVQjs/9p5vCHlz0soI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=IgK834Rc0XrHKDMB8hqniLKzrSr1uSaF81KnwF+X7bDKoa6K1ZFjXTPDar6Lvjmcb lV2bJyxTRGs0DUHUC/n1nssHwAQBcSQshCIx4FH3SYnNASwn29fAlKdUkXxQC9JuIv AV+ORiAOBOfEKMx8x7QoLiCrJ0ud+wKXWTQALTmM=
- In-reply-to: <CABrM6wkOOze2sxpL6j8Ufe7Y+F+7ZF7pkRfXo=TnMNySDn_=cQ@mail.gmail.com>
- 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: <CGME20181203151634epcas1p13aad5853fb952923ce1e124680834647@epcas1p1.samsung.com> <CABrM6wkOOze2sxpL6j8Ufe7Y+F+7ZF7pkRfXo=TnMNySDn_=cQ@mail.gmail.com>
On Mon, 2018-12-03 at 09:14 -0600, Peng Yu wrote:
> It seems that there is precedence of the operations in [[. For
> example, && is of a higher precedence than ||. I don't find where it
> is documented in the man page. Could anybody show me? Thanks.
>
> I see ARITHMETIC EVALUATION discusses precedence. But I don't think it
> is for [[.
Precedence is basically the same as for arithmetic, && higher than ||
higher than equality and inequality, but you're right that it isn't
explicitly documented in the case of [[.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author