Bug 541654 - Newer version of ksh getopts does not support parenthesis
Summary: Newer version of ksh getopts does not support parenthesis
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ksh
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 16:18 UTC by Tomas Smetana
Modified: 2018-10-27 15:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 08:22:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0234 0 normal SHIPPED_LIVE ksh bug fix and enhancement update 2010-03-29 12:39:06 UTC

Description Tomas Smetana 2009-11-26 16:18:31 UTC
Description of problem:
Ksh newer version - ksh-93s on rhel5.3 and rhel5.4 does not support parenthesis which is supported in ksh-93r(non-updated rhel5.2 or older). This is upstream change in syntax which is not documented. We have to document it in changelog.

How reproducible:
Every time

Steps to Reproduce:
Create script  'tst_options.sh'
----------
#!/bin/ksh
while getopts ":h:j:d:o:p:acqv:g(forceCDgskit)" opt
do
 echo $opt : $OPTARG
done
---------
Execute it with following argument
tst_options.sh -h This_is_h -p This_is_p

Actual results:
h : This_is_h
? : p

Expected results:
h : This_is_h
p : This_is_p

Comment 6 errata-xmlrpc 2010-03-30 08:22:33 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 therefore 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-2010-0234.html


Note You need to log in before you can comment on or make changes to this bug.