Re: getopt(3) in echo(1)

2016-10-02 Thread Alexander Hall
On September 30, 2016 5:16:57 PM GMT+02:00, Otto Moerbeek wrote: >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. */ >>

Re: getopt(3) in echo(1)

2016-09-30 Thread Otto Moerbeek
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

Re: getopt(3) in echo(1)

2016-09-30 Thread Paul de Weerd
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

getopt(3) in echo(1)

2016-09-30 Thread Jan Stary
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. Jan