Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2002 12:39:07 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Andrey Alekseyev <uitm@zenon.net>
Cc:        Pete French <pfrench@firstcallgroup.co.uk>, freebsd-stable-local@be-well.no-ip.com, stable@freebsd.org
Subject:   Re: minor annoyances
Message-ID:  <20020821103907.GE83850@pcwin002.win.tue.nl>
In-Reply-To: <200208211017.g7LAHHw26813@uitm.zenon.net>
References:  <E17hSKW-00008v-00@mailhost.firstcallgroup.co.uk> <200208211017.g7LAHHw26813@uitm.zenon.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Aug 21, 2002 at 02:17:17PM +0400, Andrey Alekseyev wrote:
> At least it definitely will fail if aaa doesn't exist.
> 
> (aaa &) && bb
> 
> This won't execute bb unless aaa is runnable.

Not on zsh:

[stijn@pcwin002] <~> (aaa &) && echo yes
zsh: command not found: aaa
yes

Nor on tcsh:
> (aaa &) && echo yes
yes
aaa: Command not found.

I'd say something is fishy with /bin/sh if it doesn't run the
'echo yes' part, but maybe the standards people can clarify this?

--Stijn

-- 
Remember, kids: "Q" is always followed by "U". You can learn more on the
Internet in the Spelling FAQU.
		-- James "Kibo" Parry

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9Y23LY3r/tLQmfWcRAi14AJkB+wfCRLf+6WzWH5n5QFJuCl8iBQCfTpAb
nWgLGzM1D8lP82xIW/xIjlM=
=zYpH
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020821103907.GE83850>