public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Error in getopts(1p)
@ 2021-08-04  9:40 Štěpán Němec
  2021-08-04 10:49 ` [PATCH] man-pages-posix-2017/man1p/getopts.1p: Fix usage of printf(1) in example Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Štěpán Němec @ 2021-08-04  9:40 UTC (permalink / raw)
  To: Michael Kerrisk, Alejandro Colomar; +Cc: linux-man


  Hello,

there is an error at the end of the example:

  printf "Remaining arguments are: %s\n$*"

should be

  printf "Remaining arguments are: %s\n" "$*"

(cf.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html )

I would have sent a patch, but couldn't find the POSIX man page sources.
Are they available somewhere?

  Thanks,

  Štěpán

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-04 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04  9:40 Error in getopts(1p) Štěpán Němec
2021-08-04 10:49 ` [PATCH] man-pages-posix-2017/man1p/getopts.1p: Fix usage of printf(1) in example Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox