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

Re: bugs?



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