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

Re: PATCH: _init_d problem with read options



Oliver Kiddle wrote:
> _init_d was broken due to `read -u0k 2' not working after the option
> parsing changes.

This could probably be fixed up.  We have special handling for optional
numeric arguments to options, but not for mandatory because it didn't
seem necessary.  Adding that and making both look for the end of the
number would restore compatilibity.

However, I'm not completely sure that's the right way to go, since the
usual convention is that the argument extends to the end of the word;
with the change, we lose sanity checking (although we can still check
there is at least one digit present).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



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