[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nonsensical error message when backgrounding invocation of wait buil
From: |
Eric Blake |
Subject: |
Re: nonsensical error message when backgrounding invocation of wait builtin |
Date: |
Wed, 30 Dec 2009 21:48:07 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Steve Newcomb on 12/30/2009 7:29 PM:
> root@zorba:/home/srn# /tmp/z.sh
> here we are!
> pidOfBackgroundProcess=20944
> /tmp/z.sh: line 10: wait: pid 20944 is not a child of this shell
>
> (But, of course, pid 20944 *was* in fact a child of this shell.)
Actually, by using &, you have run wait in a subshell, and 20944 was NOT a
child of the subshell. I don't know if there is anything that can be done
to clarify the error message, though.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAks8LQcACgkQ84KuGfSFAYDYPQCcCRiBsTn3s6H4ceyNtVDFus+E
9qgAoLnXs8c+FjUrOoX60dN1atTt0fAT
=ufcf
-----END PGP SIGNATURE-----