Dear Kumar Gala,

In message <[EMAIL PROTECTED]> you wrote:
> 
> >> +  /* start */
> >> +  if (argv[1][0] == 's') {
> >
> > I think just matching on the first letter is to restrictive; we'll end
> > up with artificical command "names" that nobody can remember.
> 
> I'm happy to move to using strncmp, but I agree with Jerry that other  
> subcommand do the shortest match possible.

Agreed. The shortest unambiguous match shall be  sufficient.  On  the
other  hand  we  should  allow for longer subcopmmand names, or we'll
very soon see artifical command identifiers that nobody can  remember
well  because  they  were  artificially  chosen to use a still unused
letter.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to