Better yet, provide -- options for each! And then provide some way of accessing them if -- won't work, like -f in gcc. And then let's add a - Q option that suppresses the banner which reads

        secho version xxx.xx
        a program to echo its arguments, but improved
        use the -h/--help option to get help
        distributed under no warranty; use --license for details

Then let's add full locale support and an option to interpret and print decimal and monetary values, and an option to support formatted print a la printf and Console.Print (.net - but my memory of that is fading).

On Apr 8, 2008, at 7:51 PM, david parsons wrote:

In article <[EMAIL PROTECTED]>,
Pietro Gagliardi <[EMAIL PROTECTED]> wrote:
The ultimate echo, actually useful, but no one wants it.

NAME
     echo: echo arguments
SYNOPSIS
     echo [-1abCDEeilmNnOqrtuVvwXx] [-B base] [-c cmd] [-d char] [-f
file] [-L len] [-o file] [-S voice] [-s char] [args...]
DESCRIPTION
     echo outputs its arguments. It takes the following switches:


   You missed a few things in this shudderingly horrible
   version of echo:

       1) no long options, which you need so you can have
          the --copyright and --version options.
       2) no roman numeral output.

   Fortunately, I have no self-respect and some spare time,
   so when I implemented this gem of design minimalism I
   put those horrible omissions in.

      http://www.pell.portland.or.us/~orc/Code/secho/

   I would have used the horrible FSF autoconfigure code,
   but it turns out that I've got some remaining standards.


   -david "share and enjoy!" parsons



Reply via email to