From owner-freebsd-ports@FreeBSD.ORG Fri Jun 1 07:43:10 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E49691065673; Fri, 1 Jun 2012 07:43:10 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mx1.freebsd.org (Postfix) with ESMTP id 961128FC0A; Fri, 1 Jun 2012 07:43:10 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mail.0x20.net (Postfix) with ESMTP id 761666A6017; Fri, 1 Jun 2012 09:43:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.0x20.net Received: from mail.0x20.net ([217.69.76.211]) by mail.0x20.net (mail.0x20.net [217.69.76.211]) (amavisd-new, port 10024) with ESMTP id rzkkJnWN2Q5N; Fri, 1 Jun 2012 09:43:09 +0200 (CEST) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 24DF36A6010; Fri, 1 Jun 2012 09:43:09 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.4/8.14.4) with ESMTP id q517h8Mf001678; Fri, 1 Jun 2012 09:43:08 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.4/8.14.5/Submit) id q517h8tO000885; Fri, 1 Jun 2012 09:43:08 +0200 (CEST) (envelope-from lars) Date: Fri, 1 Jun 2012 09:43:08 +0200 From: Lars Engels To: Alexander Pyhalov Message-ID: <20120601074308.GC39168@e-new.0x20.net> References: <4E946838-4F3B-421A-839E-05E1A01464AB@FreeBSD.org> <20120601035349.GA97671@DataIX.net> <4FC8555E.3090802@rsu.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K9FID0tFm7ImS7zj" Content-Disposition: inline In-Reply-To: <4FC8555E.3090802@rsu.ru> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.2-RELEASE-p6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jilles@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: [ GSOC ] Differences in shell behaviour X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2012 07:43:11 -0000 --K9FID0tFm7ImS7zj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 01, 2012 at 09:38:38AM +0400, Alexander Pyhalov wrote: > Good morning. >=20 > On 06/01/2012 07:53, Jason Hellenthal wrote: > > > > > > On Thu, May 31, 2012 at 11:21:10PM +0400, Alexander Pronin wrote: > >> The problem is: > >> ### sh in 8.3 > >> $ false& pid=3D$! > >> $ > >> [1] Done (1) false > >> $ wait ${pid} > >> wait: No such job: 4852 > > > > I don't see this behavior on 8.3-STABLE @r236350 i386 > > --- > > Console> false& pid=3D$! > > Console> wait ${pid} > > [1] Done (1) false > > Console> echo $? > > 1 >=20 > It seems to behave differently, when you issue some additional commands= =20 > or interact with shell. >=20 > first case (8.3 r234443): > $ false &pid=3D$! > $ wait ${pid} > [1] Done (1) false > $ echo $? > 1 >=20 > second case (8.3 r234443): > $ false & pid=3D$! > $ # some interaction with shell > [1] Done (1) false > $ wait ${pid} > wait: No such job: 59092 >=20 >=20 > Now, on 9.0-RELEASE > first case: > $ false & pid=3D$! > $ wait ${pid} > [1] Done(1) false > $ echo $? > 1 >=20 > second case: > $ false & pid=3D$! > $ # some activity > [1] Done(1) false > $ wait ${pid} > $ echo $? > 1 >=20 > Do you see the difference ? Which behavior is correct? Can it be a sh bug? >=20 Adding jilles to CC, he worked on sh(1) during the last months. --K9FID0tFm7ImS7zj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/IcowACgkQKc512sD3afgDvgCgxhFZXDDXyaZb1ZgjX3pimCUA O6QAni6+xrvu47G1X11GDegib7nzGVCA =zAS1 -----END PGP SIGNATURE----- --K9FID0tFm7ImS7zj--