[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug with BASH V4: The "$!"
From: |
Dan Douglas |
Subject: |
Re: Possible bug with BASH V4: The "$!" |
Date: |
Thu, 11 Apr 2013 08:24:53 -0500 |
User-agent: |
KMail/4.8.3 (Linux/3.4.6-pf+; KDE/4.8.3; x86_64; ; ) |
On Thursday, April 11, 2013 01:05:43 PM Lenga, Yair wrote:
> With BASH 3.0, the backgrounded task could access the PID of the parent using
> "$$", and the PID Of itself as "$!".
>
> With BASH 4.0, the script fail, the "$!" is not available to the child
> process.
>
> Is it possible to add back the functionality to allow the child process to
> somehow retrieve it's OWN PID. I assume that the behavior of "$$" cannot be
> modified at this time.
BASHPID was introduced in Bash 4. I would guess that prior to that, the
behavior of $! was either a nonstandard extension or unintentional bug. Check
the changelog.
--
Dan Douglas
- Possible bug with BASH V4: The "$!", Lenga, Yair , 2013/04/11
- Re: Possible bug with BASH V4: The "$!", Greg Wooledge, 2013/04/11
- Re: Possible bug with BASH V4: The "$!",
Dan Douglas <=
- Re: Possible bug with BASH V4: The "$!", Chet Ramey, 2013/04/11
- RE: Possible bug with BASH V4: The "$!", Lenga, Yair , 2013/04/11
- Re: Possible bug with BASH V4: The "$!", Greg Wooledge, 2013/04/11
- Re: Possible bug with BASH V4: The "$!", Dan Douglas, 2013/04/11
- Re: Possible bug with BASH V4: The "$!", Chet Ramey, 2013/04/11
- RE: Possible bug with BASH V4: The "$!", Lenga, Yair , 2013/04/12