On 14:27 Mon 18 Aug     , Al Chu wrote:
> 
> Or do the existing test scripts only use the first character of the
> command?

Yes.

> If that's the case, then I guess we could program in single
> character commands to be legacy-special cases.

Why it should be special case? What is wrong with using partial command
names when resolving is simple?

> But we would require
> whitespace between the command and options for that to work.

This is fine.

What I meant is follow:

        unsigned cmd_len = 0;

        while (isalpha(line[cmd_len]))
                cmd_len++;

        if (!strncasecmp(line, "Dump", cmdlen))
                ...

In this case strings "D", "du", etc. will be resolved as "Dump" command.

Sasha
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to