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

argv subscript range uses too many memory



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.



Messages sorted by: Reverse Date, Date, Thread, Author