Package: dash
Version: 0.5.10.2-5

Hi all,

I believe I have found a POSIX compliance bug when dash is being executed as 
sh. It is very easy to reproduce, simply run the below:

# kill -USR1 -- 0
sh: 3: kill: Illegal number: -

kill(1p) says:

> The kill utility shall conform to the Base Definitions volume of POSIX.1‐
> 2008, Section 12.2, Utility Syntax Guidelines, except that in the last two 
> SYNOPSIS forms, the −signal_number and  −signal_name  options  are       
> usually more than a single character.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html

Here one can find the specification for the -- end op options option:

> Guideline 10:
>    The first -- argument that is not an option-argument should be accepted
>    as a delimiter indicating the end of options. Any following arguments
>    should be treated as operands, even if they begin with the '-' character.

Thanks,

-- 
Melvin Vermeeren.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to