Date: Sun, 9 Nov 1997 19:39:35 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Subject: Re: Why doesn't /bin/echo use getopt? Message-ID: <19971109193935.QU33958@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.96.971109104957.6497A-100000@phoenix.its.rpi.edu>; from David E. Cross on Nov 9, 1997 10:51:17 -0500 References: <19971109115007.JB56482@uriah.heep.sax.de> <Pine.BSF.3.96.971109104957.6497A-100000@phoenix.its.rpi.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
As David E. Cross wrote: > for echo: > echo -- -n\n > > That would work with getopt(3). ...but not with /bin/echo, that's why i was asking. j@uriah 54% /bin/echo -- '-n\n' -- -n\n OTOH, if you were asking for getopt, consider: j@uriah 55% /bin/echo "- today's a great day -" - today's a great day - vs. the getopt(3)ified version: j@uriah 56% /tmp/echo/echo "- today's a great day -" echo: illegal option -- echo: illegal option -- t echo: illegal option -- o echo: illegal option -- d echo: illegal option -- a echo: illegal option -- y echo: illegal option -- ' echo: illegal option -- s echo: illegal option -- echo: illegal option -- a echo: illegal option -- echo: illegal option -- g echo: illegal option -- r echo: illegal option -- e echo: illegal option -- a echo: illegal option -- t echo: illegal option -- echo: illegal option -- d echo: illegal option -- a echo: illegal option -- y echo: illegal option -- -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971109193935.QU33958>
