Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: echoti and number of arguments
- X-seq: zsh-workers 18545
- From: Stephane CHAZELAS <Stephane_CHAZELAS@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: echoti and number of arguments
- Date: Sat, 17 May 2003 10:34:58 +0200
- In-reply-to: <20030517100115.A128@xxxxxxxxxxxxxxxxxx>; from Stephane_CHAZELAS@xxxxxxxx on Sat, May 17, 2003 at 10:01:16AM +0200
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20030517100115.A128@xxxxxxxxxxxxxxxxxx>
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