zsh-workers
 help / color / mirror / code / Atom feed
* bugs?
@ 1997-05-20 15:02 Bernd Eggink
  1997-05-20 19:58 ` bugs? Zoltan T. Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Eggink @ 1997-05-20 15:02 UTC (permalink / raw)
  To: zsh-workers mailing list

Hi experts,

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?

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
   freqently use select in a function that realizes a checklist, 
   where you can check and uncheck single items as well as ranges in
   the form "4-13". In order to test if a range has been entered,
   I have to examine REPLY before the select-variable, which is somewhat
   unsatisfying.

   The original ksh88 shows the same behavior. I told David Korn
   about it some time ago, and he, too, considered this a bug.

Regards,
	Bernd

--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@rzaix13.rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bugs?
  1997-05-20 15:02 bugs? Bernd Eggink
@ 1997-05-20 19:58 ` Zoltan T. Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan T. Hidvegi @ 1997-05-20 19:58 UTC (permalink / raw)
  To: Bernd Eggink; +Cc: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-20 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-20 15:02 bugs? Bernd Eggink
1997-05-20 19:58 ` bugs? Zoltan T. Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).