From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <7d3530220804031544gafc80f0x91134d1a62f5bb6c@mail.gmail.com> References: <25ccc14e31b80a0d5f547dda09a7074e@9srv.net> <1A05557E-B5BF-4579-A4E2-17EF6C245763@mac.com> <7d3530220804031544gafc80f0x91134d1a62f5bb6c@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <593ECB96-89F8-4F9B-8B09-ECF64D501479@mac.com> Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Date: Thu, 3 Apr 2008 18:53:12 -0400 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] bug in echo? Topicbox-Message-UUID: 88a3ca78-ead3-11e9-9d60-3106f5b1d025 Forgot a bit. echo -n '-n ' On Apr 3, 2008, at 6:44 PM, John Floren wrote: > On Thu, Apr 3, 2008 at 3:26 PM, Pietro Gagliardi > wrote: >> You don't realize the point. I am agreeing with Kernighan and >> Pike: cat -v >> is harmful. So is ls -M, or echo -f, or rm -i. I'm showing a >> ludicrous echo >> command and challenging you to make it effective. What you'll find is >> surprising: >> 1) Maintaining echo is harder than maintaining all of Microsoft >> Windows and >> Microsoft Office combined, > > A bold claim, and a damn silly one. > >> 2) That my question and my challenge and my echo were all >> rhetorical. > > If they were rhetorical, you wouldn't have challenged us to implement > your echo in the previous paragraph. > >> Here is my ultimate echo (yours may vary): >> >> NAME >> echo -- echo argumens >> SYNOPSIS >> echo [-n] arguments >> DESCRIPTION >> echo prints arguments on standard output, followed by >> newline. If -n >> is given, no new line is added. >> BUGS >> To print -n and a newline, use >> echo -n ' >> ' >> > > A substandard re-writing of the existing echo(1) man page is your > ultimate echo? > Also, > echo -n ' > ' > doesn't match current behavior and really makes zero sense. > > John > -- > Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn >