On 9/5/22 6:13 PM, Aryan Bansal wrote:
>Bash Version: 5.1
>Patch Level: 16
>Release Status: release
>
>Description:
> While testing how bash handles foreground and background processes
>using "&", I found out that the behaviour is sometimes undefined. The
>prompt sometimes prints just as the background process finishes executing
>resulting in a glitch that makes the prompt unable to be used until Enter
>is pressed.
This is not a bug. Since these are different processes, scheduled
independently, bash doesn't have control of when the background processes
print their output.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/