Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: WORDCHARS, etc.
- X-seq: zsh-workers 6619
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: WORDCHARS, etc.
- Date: Mon, 14 Jun 1999 15:12:24 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Mon, 14 Jun 1999 09:15:47 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> One problem remains with the $NUMERIC mechanism: there's no way of
> differentiating between the case where the prefix was given as 1 and where
> no prefix was given. This is already noticeable in the completion code for
> specifying numbers of correction. Possibilities are either a separate
> parameter, which is clumsy, or altering NUMERIC in some way: I would
> prefer that it is still numerically 1 in either case to avoid confusing
> functions, but maybe it could be '+1' if the prefix wasn't set. That would
> mean making it a string instead of an integer parameter.
I wouldn't like it to be such a string because we can't easily get at
the default value then. How about leaving it unset if no numeric
argument is given? To be able to say ${NUMERIC:-1}.
(I had this idea some time ago but then forgot to ask...)
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author