[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Precedence of || and &&
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Precedence of || and && |
Date: |
Wed, 4 Jan 2017 08:06:55 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Tue, Jan 03, 2017 at 08:19:49PM -0600, Peng Yu wrote:
> Hi, The following example shows that || and && run in the order in the
> command. Is it so?
Yes.
You should NOT mix && and || in the same command. See
http://mywiki.wooledge.org/BashPitfalls#cmd1_.26.26_cmd2_.7C.7C_cmd3