Bug 250362

Summary: description in ksh's manpage about subscript of index array is wrong
Product: Red Hat Enterprise Linux 5 Reporter: chuli <chul>
Component: kshAssignee: Tomas Smetana <tsmetana>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0326 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 15:43:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the patch for ksh manpage none

Description chuli 2007-08-01 03:02:42 UTC
Description of problem:
The description in ksh's manpage about subscript of index array is wrong.
It says that "The value of all subscripts must be in the range of 0 through 
4095."
In fact, the subscript reach to 16777215.

Version-Release number of selected component (if applicable):
ksh-20060214-1.4

How reproducible:
100%

Steps to Reproduce:
1.man ksh
  
Actual results:
"The value of all subscripts must be in the range of 0 through 4095." will be 
outputed.

Expected results:
"The value of all subscripts must be in the range of 0 through 16777215." will 
be outputed.

Comment 1 chuli 2007-08-01 03:02:51 UTC
Created attachment 160391 [details]
the patch for ksh manpage

Comment 2 Tomas Smetana 2007-08-01 11:04:32 UTC
I'm a bit confused...  This bug was filled three times (bug #250359, bug
#250360) and this one seems to be the latest.  Is this really true for i386
only?  And please keep in mind that ksh scripts are supposed to be portable
among really big number of architectures (even those RHEL won't run on) and the
man page must be really generic.  Two of the three mentioned bugs should be
closed.  Which ones should that be?


Comment 3 Tomas Smetana 2007-08-01 11:08:28 UTC
Oops... Four times: bug #250356 as well.  OK.  I'll close the two of three for
"all" architectures and I would like to ask you whether you could provide any
more detailed info about which of the two remaining to close...

Comment 4 chuli 2007-08-03 01:18:52 UTC
Sorry for duplicated the bug. 
Since when I commit it, a warning message that "Product Name "" is invalid or 
doesnot exist" alwayas outputed, so I tried four times....

This bug is about index subscripts, which has been expanded to 16M. But the 
manpage tells me that it is only 4K.


Comment 5 Tomas Smetana 2007-08-03 06:15:46 UTC
*** Bug 250360 has been marked as a duplicate of this bug. ***

Comment 6 Tomas Smetana 2007-08-03 06:24:16 UTC
I've closed the remainning duplicate and set architecture to "all" on this one.

I know the maximum subscribt value has been increased but originally I thought
that the new limit was 4Mi (not 16Mi). I'll check this with upstream -- the
manpage is wrong in both cases.

Comment 7 RHEL Program Management 2007-10-19 20:27:20 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 9 Tomas Smetana 2007-11-01 15:49:26 UTC
I've checked the latest beta ksh (2007-10-31) and it says:

The value of all subscripts must be in the range of 0 through 1,048,575.

Let's use that number.

Comment 14 errata-xmlrpc 2008-05-21 15:43:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0326.html