On Fri, Sep 30, 2016 at 04:47:33PM +0200, Paul de Weerd wrote: > On Fri, Sep 30, 2016 at 04:40:16PM +0200, Jan Stary wrote: > | echo.c says > | > | /* This utility may NOT do getopt(3) option parsing. */ > | > | Why is that, for echo(1) specifically? > | Other binaries in /bin seem to use getopt(3) freely. > > Because echo should echo all arguments, including those that would > otherwise be parsed by getopt(3), except for '-n'.
To be more specific: -- See also http://pubs.opengroup.org/onlinepubs/9699919799/ -Otto