Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1011913
| From | Jakub Wilk <jwilk@jwilk.net> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#961740: printf attempts to parse options and fails to print --help |
| Date | 2020-05-29 19:40 +0200 |
| Message-ID | <AbR98-3om-11@gated-at.bofh.it> (permalink) |
| References | <AbsDM-5yg-11@gated-at.bofh.it> <AbsDM-5yg-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Melvin Vermeeren <vermeeren@vermwa.re>, 2020-05-28, 17:17: >POSIX specifies printf has no options, meaning this should print "--help". >Arguments parsing must simply not be attempted at all in order to be >compliant as far as I know. > >$ /usr/bin/printf --help >Usage: /usr/bin/printf FORMAT [ARGUMENT]... > or: /usr/bin/printf OPTION I think you're misinterpreting the standard. If it really meant that implementations must not support any options, it would say so explicitly, like it does for echo: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html -- Jakub Wilk
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#961740: printf attempts to parse options and fails to print --help Melvin Vermeeren <vermeeren@vermwa.re> - 2020-05-28 17:30 +0200
Bug#961740: printf attempts to parse options and fails to print --help Michael Stone <mstone@debian.org> - 2020-05-28 18:20 +0200
Bug#961740: printf attempts to parse options and fails to print --help Jakub Wilk <jwilk@jwilk.net> - 2020-05-29 19:40 +0200
Bug#961740: printf attempts to parse options and fails to print --help Melvin Vermeeren <vermeeren@vermwa.re> - 2020-05-29 20:20 +0200
csiph-web