Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bugs?
- X-seq: zsh-workers 3160
- From: <hzoli@xxxxxxxxxxxx> (Zoltan T. Hidvegi)
- To: eggink@xxxxxxxxxxxxxxxxxx (Bernd Eggink)
- Subject: Re: bugs?
- Date: Tue, 20 May 1997 15:58:24 -0400 (EDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <3381BCFD.59E2@xxxxxxxxxxxxxxxxxx> from Bernd Eggink at "May 20, 97 05:02:21 pm"
Bernd Eggink wrote:
> 1. I tried to split a parameter into words using the separator ':'.
> Neither of this works:
>
> x=a:b:c
> print ${(s:::)x}
> print ${(s:\::)x}
> print ${(s:':':)x}
>
> What I get is the message "zsh: error in flags". Although I
> could work around it, I'd like to know if it _should_ work?
No, the separator cannot be escaped here, but you can use any character as
a separator. E.g. ${(s[:])x} works.
> 2. The 'select' statement doesn't check its input properly.
> If you enter, e.g., "2blah", it is taken as "2" and the rest is
> ignored. This makes some things inconvenient. For example, I
I'll try to look at this.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author