From owner-freebsd-stable Tue Aug 20 23:43:47 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F75637B400 for ; Tue, 20 Aug 2002 23:43:45 -0700 (PDT) Received: from frontend2.aha.ru (bird.zenon.net [213.189.198.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3729043E72 for ; Tue, 20 Aug 2002 23:43:44 -0700 (PDT) (envelope-from uitm@zenon.net) Received: from [195.2.83.132] (HELO backend2.aha.ru) by frontend2.aha.ru (CommuniGate Pro SMTP 4.0b6) with ESMTP id 139060521; Wed, 21 Aug 2002 10:43:43 +0400 Received: from uitm.zenon.net ([195.2.69.86] verified) by backend2.aha.ru (CommuniGate Pro SMTP 4.0b6) with ESMTP id 28377852; Wed, 21 Aug 2002 10:43:43 +0400 From: Andrey Alekseyev Message-Id: <200208210643.g7L6hhr23559@uitm.zenon.net> Subject: Re: minor annoyances In-Reply-To: <20020821003840.GA18202@HAL9000.homeunix.com> from David Schultz at "Aug 20, 2002 05:38:40 pm" To: David Schultz Date: Wed, 21 Aug 2002 10:43:43 +0400 (MSD) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > What were you expecting this to do? The && operator conditionally > executes its right operand depending on the return value of its > left operand. But if you run a task in the background, there is > no immediate return value to speak of. The '& &&' construct only > makes sense if you have a shell with magical predictive powers to > correctly guess a program's return code before it finishes. While > ash doesn't have those, I understand that this is one of the many > new features planned for the next version of bash. Well, shame on me. I always thought it works just like (aaa &) && bbb which has the right effect. So I assume, that was a parsing bug fixed which previously had been allowing the incorrect notation. Back to fix my scripts (fortunately I wasn't using that bad syntax much:) -- Andrey Alekseyev. Zenon N.S.P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message