Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2012 09:43:08 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        Alexander Pyhalov <alp@rsu.ru>
Cc:        jilles@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: [ GSOC ] Differences in shell behaviour
Message-ID:  <20120601074308.GC39168@e-new.0x20.net>
In-Reply-To: <4FC8555E.3090802@rsu.ru>
References:  <4E946838-4F3B-421A-839E-05E1A01464AB@FreeBSD.org> <20120601035349.GA97671@DataIX.net> <4FC8555E.3090802@rsu.ru>

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

--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--



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