zsh-users
 help / color / mirror / code / Atom feed
* argv subscript range uses too many memory
@ 2012-11-08  8:40 Han Pingtian
  2012-11-08 10:02 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Han Pingtian @ 2012-11-08  8:40 UTC (permalink / raw)
  To: zsh-user

Hi,

This script on my laptop uses so much memory so that being killed by
oom-killer:

arr=(~/**/*)
set -- "${(@)arr}"

while ((ARGC))
do
   print -- "${argv[1,3]}"
   shift 3
done

But if change the subscript range to single array elements, it works
just fine. So I suspect there is something wrong with the subscript
range.

Any thoughts?

Thanks in advance.


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

end of thread, other threads:[~2012-11-20 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-08  8:40 argv subscript range uses too many memory Han Pingtian
2012-11-08 10:02 ` Peter Stephenson
2012-11-10 10:58   ` Han Pingtian
2012-11-10 14:57     ` Bart Schaefer
2012-11-20 13:04       ` Han Pingtian
2012-11-20 17:03         ` Bart Schaefer

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