zsh-users
 help / color / mirror / code / Atom feed
* wrong array range with (r) flag on scalar?
@ 2015-03-05  8:30 Han Pingtian
  2015-03-05 16:44 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Han Pingtian @ 2015-03-05  8:30 UTC (permalink / raw)
  To: zsh-users

Hi,

Looks like this is wrong:

localhost% a='hello world'
localhost% print $a[(r)h?]
h
localhost% print $a[(r)h?,(r)w?]
hello wo
localhost%

In the range, the end should be "w" and the result should be "hello w"?


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

end of thread, other threads:[~2015-03-05 22:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05  8:30 wrong array range with (r) flag on scalar? Han Pingtian
2015-03-05 16:44 ` Bart Schaefer
2015-03-05 22:16   ` Roman Neuhauser

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).