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