[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: `sleep` fails if called with an end-of-options delimiter `--`
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2023-10-02 11:57:11
Message-ID: CAK1hOcNO1M=3oy85jt33HdAcMDEBs9rz1d+t_irc5CyTdgVTFQ () mail ! gmail ! com
[Download RAW message or body]

Fixed in git. Thank you.

On Sun, Jun 25, 2023 at 4:19 PM Lucas Larson <lucas.larson@gmail.com> wrote:
> 
> package: busybox
> version: 1.36.1
> 
> Bug description:
> When using the `sleep` command with the end-of-options delimiter `--` (that is, \
> `sleep -- 1` or `busybox sleep -- 1`), the command fails to execute properly. \
> However, both `sleep 1` and `busybox sleep 1` commands work as expected. According \
> to the POSIX standard, both constructions should be permitted. 
> Minimal steps to reproduce:
> $ docker pull alpine
> $ docker run -it alpine
> $ busybox --help | head -1
> BusyBox v1.36.1 (2023-06-02 00:42:02 UTC) multi-call binary.
> $ cat /etc/os-release
> NAME="Alpine Linux"
> ID=alpine
> VERSION_ID=3.18.2
> PRETTY_NAME="Alpine Linux v3.18"
> HOME_URL="https://alpinelinux.org/"
> BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
> 
> $ sleep 1 # sleeps for a second
> $ sleep -- 1
> sh: invalid number '--' # and container exits
> $ busybox sleep 1 # sleeps for a second
> $ busybox sleep -- 1
> sleep: invalid number '--' # container does not exit
> 
> $ apk add coreutils # install coreutils on Alpine Linux
> $ coreutils --coreutils-prog=sleep 1 # sleeps for a second
> $ coreutils --coreutils-prog=sleep -- 1 # also sleeps for a second
> 
> Thank you,
> 
> Lucas Larson
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic