Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1011914
| From | Jakub Wilk <jwilk@jwilk.net> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#961739: printf attempts to parse options and fails to print -h or similar |
| Date | 2020-05-29 20:00 +0200 |
| Message-ID | <AbRsu-3uE-3@gated-at.bofh.it> (permalink) |
| References | <AbsDM-5yg-7@gated-at.bofh.it> <AbsDM-5yg-7@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 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 standard. >I also tested zsh, which appears to be fully compliant. Let's see: % printf -v printf: argument expected: -v -- Jakub Wilk
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#961739: printf attempts to parse options and fails to print -h or similar Melvin Vermeeren <vermeeren@vermwa.re> - 2020-05-28 17:30 +0200 Bug#961739: printf attempts to parse options and fails to print -h or similar Jakub Wilk <jwilk@jwilk.net> - 2020-05-29 20:00 +0200
csiph-web