Date: Sun, 9 Nov 1997 16:46:10 +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: <19971109164610.QQ32715@uriah.heep.sax.de> In-Reply-To: <199711091519.QAA04460@rvc1.informatik.ba-stuttgart.de>; from Wolfgang Helbig on Nov 9, 1997 16:19:08 %2B0100 References: <l03110701b08b4c1e60fd@[208.2.87.4]> <199711091519.QAA04460@rvc1.informatik.ba-stuttgart.de>
next in thread | previous in thread | raw e-mail | index | archive | help
As Wolfgang Helbig wrote: > $ echo -n "-n > > " > > seems to be an answer to this week's question. I think the less ugly looking answer is echo -n "$randomtext"; echo "" This one has the advantage that it'll also work for the csh unmodified, and seems to be the way out if you don't know whether some user's input ($randomtext) might start with -n. -- 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?19971109164610.QQ32715>