Bug#961739: printf attempts to parse options and fails to print -h or similar

2020-05-29 Thread Jakub Wilk
* Melvin Vermeeren , 2020-05-28, 17:17: POSIX specifies printf has no options, meaning these should print "-h" and "--help" respectively. Arguments parsing must simply not be attempted at all in order to be compliant as far as I know. As I wrote in #961740, I think you're misinterpreting the

Bug#961739: printf attempts to parse options and fails to print -h or similar

2020-05-28 Thread Melvin Vermeeren
Package: dash Version: 0.5.10.2-5 Hi, POSIX specifies printf has no options, meaning these should print "-h" and "-- help" respectively. Arguments parsing must simply not be attempted at all in order to be compliant as far as I know. $ printf -h sh: 1: printf: Illegal option -h $ printf --help