Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: echoti and number of arguments



On Sat, May 17, 2003 at 10:01:16AM +0200, Stephane CHAZELAS wrote:
[...]
> Then, the way the argument count is checked in zsh is nonsense:
> 
>   /* count the number of arguments required */
>   for (argct = 0, u = t; *u; u++)
>       if (*u == '%') {
>           if (u++, (*u == 'd' || *u == '2' || *u == '3' || *u == '.' ||
>                     *u == '+'))
>               argct++;
>       }
[...]

I get it, it was copied from the termcap one. terminfo and
termcap escape handling are totally different.

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author