Running up against ksh array size limit (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum



Message


policyvote -> Running up against ksh array size limit (Aug. 23, '06, 11:02:47 AM)

Hello all--

I unfortunately ran up against the old array size limit of 1,023 elements in a ksh script. According to my UNIX in-a-nutshell book, the array max was upped to 4,096 elements with ksh88, and modern versions allow up to 65,536 elements! I am running SFU 3.5 on Win2K . . . what can I do?

Peace
policy




Rodney -> RE: Running up against ksh array size limit (Aug. 23, '06, 2:02:35 PM)

There's a few ways to go:
1) I haven't made it into a package yet, but the base binary for a newer ksh
I dropped onto the ftp site several weeks ago in /pub. You can try running that.
I don't know if the array size changed/increased, but it's worth a try.

2) You could try running the script with bash. I don't know off-hand the array
limit with bash, but most "ksh scripts" can be run by bash.

3) If (1) or (2) don't work out I can look at the ksh build to see if the
array size can be increased. Given other work priorities it would be a several days
at least before getting to this option.




policyvote -> RE: Running up against ksh array size limit (Sep. 27, '06, 11:19:19 AM)

Rodney--

Sorry it took so long to get back to you. I had already had to code around this specific problem, so I didn't get a chance to actually test this. I did install the newer build of ksh, however. I immediately noticed improved performance--especially in terms of draw rate to the screen, things seem to happen much much faster. However, if I use the "clear" command, I get the error: 'xterm': unknown terminal type.

I will test to see if the array size thing has been fixed, but in the meantime, do you have any ideas?

Peace
policy




Rodney -> RE: Running up against ksh array size limit (Sep. 27, '06, 1:11:36 PM)

> however. I immediately noticed improved performance--especially in terms of draw
> rate to the screen, things seem to happen much much faster.

It wasn't an intended side-effect [&:]
I think it comes from the fact that I haven't made the code handle multibyte as the
version that ships with Interix does.

> However, if I use the "clear" command, I get the error: 'xterm': unknown
> terminal type.

okay, I'll check it out.

I did some tests on array size and found I can increase the size for ksh.
But the newer ksh there still has the older, smaller size.




policyvote -> RE: Running up against ksh array size limit (Sep. 27, '06, 1:23:32 PM)

Excellent! Thanks Rodney, I really appreciate you checking this out.

Peace
policy




policyvote -> RE: Running up against ksh array size limit (Oct. 18, '06, 9:13:59 AM)

Rodney--

Have you had a chance to look into the "clear" malfunction at all?

Peace
policy




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.078