Re: bash cannot switch background/foreground for aplay
From:
Chet Ramey
Subject:
Re: bash cannot switch background/foreground for aplay
Date:
Fri, 6 Mar 2020 09:30:21 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
On 3/6/20 1:57 AM, Chao Song wrote:
> Hi, Bash Developers,
>
> I found that bash cannot switch background/foreground for aplay.
>
> To reproduce:
>
> 1. run aplay: aplay -Dhw:0,0 -f dat -i -c2 -vvv ./somewave.wav
>
> 2. press CTRL + Z to switch to background
>
> 3. press fg to switch to foreground. [Failed at this step, seems aplay
> not in foreground, because output for aplay is not resumed.]
This is shaky logic.
>
> Not sure if this is a bug of aplay or bash, could you please to take a
> look at bash first?
Is any other process, including bash, getting read access to the terminal?
If not, how can this be a bash bug?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/