Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Running up against ksh array size limit

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Running up against ksh array size limit Page: [1]
Login
Message << Older Topic   Newer Topic >>
Running up against ksh array size limit - Aug. 23, '06, 11:02:47 AM   
policyvote

 

Posts: 12
Joined: Jan. 11, '06,
Status: offline
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
Post #: 1
RE: Running up against ksh array size limit - Aug. 23, '06, 2:02:35 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
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.

(in reply to policyvote)
Post #: 2
RE: Running up against ksh array size limit - Sep. 27, '06, 11:19:19 AM   
policyvote

 

Posts: 12
Joined: Jan. 11, '06,
Status: offline
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

(in reply to Rodney)
Post #: 3
RE: Running up against ksh array size limit - Sep. 27, '06, 1:11:36 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> 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.

(in reply to policyvote)
Post #: 4
RE: Running up against ksh array size limit - Sep. 27, '06, 1:23:32 PM   
policyvote

 

Posts: 12
Joined: Jan. 11, '06,
Status: offline
Excellent! Thanks Rodney, I really appreciate you checking this out.

Peace
policy

(in reply to Rodney)
Post #: 5
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Running up against ksh array size limit Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047