[Bug 15631] New: sleep command after '&' in a shell script has no effect

bugzilla at busybox.net bugzilla at busybox.net
Sat Jun 17 21:04:58 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15631

            Bug ID: 15631
           Summary: sleep command after '&'  in a shell script has no
                    effect
           Product: Busybox
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: manhongdai at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

In BusyBox v1.36.1 coming with Alpine Linux 3.18.2 for Raspberry Pi, the script
below will return immediately. However, on all old versions of BusyBox, such as
v1.35.0 on Alpine Linux 3.17.3 on Raspberry Pi, it will return after 60
seconds.

#!/bin/sh
for i in 0 1 2 3 4 5
do
        echo "Loop: $i" &
        sleep 10
done

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list