From owner-freebsd-questions Tue Jul 2 11:55:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA29887 for questions-outgoing; Tue, 2 Jul 1996 11:55:51 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA29878 for ; Tue, 2 Jul 1996 11:55:47 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA08602; Tue, 2 Jul 1996 11:53:47 -0700 From: Terry Lambert Message-Id: <199607021853.LAA08602@phaeton.artisoft.com> Subject: Re: Bug in /bin/sh To: mike@networx.ie Date: Tue, 2 Jul 1996 11:53:46 -0700 (MST) Cc: questions@FreeBSD.org In-Reply-To: from "Michael Ryan" at Jul 2, 96 05:20:15 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Can anybody confirm that there is a bug in /bin/sh in FreeBSD v2.1, > which the following commands illustrate... [ ... ] I am suspicious of these lines: > test $1 = abc && { [ ... ] > there is no command called "there" & As far as I know, "there" isn't a command... I suspect the backgrounding is causing the function to return twice. The "&&" is odd. Shell bugs are being collected by Joerg Wunsch (joerg@freebsd.org), and he keeps threatening to fix them all in the problem report logs. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.