I guess either my previous message didn't make it or wasn't clear enough the problem has been replicated and a fix will be in the next beta due today
On Fri, 18 Dec 2009 12:05:44 -0700 (MST) bugmail-sender at Sun.COM wrote: > *Synopsis*: libast getopt solaris compatibility broken > This CR has had a change of priority to or from a high value. > CR 6909579 changed on Dec 18 2009 by <User 1-PWPBN> > === Field ============ === New Value ============= === Old Value ============= > Evaluation New Note > Introduced in Build snv_72 > Introduced in Release solaris_nevada > Priority 2-High 3-Medium > Public Comments New Note > Status 6-Fix Understood 3-Accepted > Synopsis libast getopt solaris com.. getopts in ksh93 failed t.. > Work Around New Note Old Note > ====================== =========================== =========================== > > *Change Request ID*: 6909579 > *Synopsis*: libast getopt solaris compatibility broken > Product: solaris > Category: shell > Subcategory: korn93 > Type: Defect > Subtype: > Status: 6-Fix Understood > Substatus: > Priority: 2-High > Introduced In Release: solaris_nevada > Introduced In Build: snv_72 > Responsible Engineer: <User 1-PWPBN> > Keywords: > === *Description* ============================================================ > in the opensolaris of snv_128, getopts failed to deal with a short/long > options mix. > getopts "d:(directory)f:(file)(input-file)o:(output-file)" opt > and getopts "d:f:o:" opt worked fine, but > getopts "d:f:(file)(input-file)o:(output-file)" opt failed with "-f: unknown > option" when invoked with "-f tmpfile" > *** (#1 of 1): 2009-12-11 07:58:07 GMT+00:00 <User 1-FHVYR> > === *Public Comments* ======================================================== > libast/optget/init (in usr/src/lib/libast/common/misc/optget.c) function > wrongly converts solaris style getopts optstring > input: d:f:(file)o:(output-file) > output: [-][d]:[string][::file][o:output-file]:[string] > should be: [-][d]:[string][f:file][o:output-file]:[string] > I have preliminary fix, but have to test it throughly first. > *** (#1 of 1): [ UNSAVED ] <email address omitted> > *** (#1 of 1): 2009-12-18 18:55:30 GMT+00:00 <User 1-PWPBN> > === *Workaround* ============================================================= > Moving long options to the beginning of optstring might work with a bit of > luck > This works > f:(file)o:(output-file)d: > This does not > d:f:(file)o:(output-file) > *** (#1 of 1): 2009-12-17 14:03:43 GMT+00:00 <User 1-PWPBN> > *** Last Edit: 2009-12-18 18:55:30 GMT+00:00 <User 1-PWPBN> > === *Additional Details* ===================================================== > Targeted Release: > Commit To Fix In Build: > Fixed In Build: > Integrated In Build: > Verified In Build: > See Also: 6909580 > Duplicate of: > Hooks: > Hook1: > Hook2: > Hook3: > Hook4: > Hook5: > Hook6: > Program Management: > Root Cause: > Fix Affects Documentation: No > Fix Affects Localization: No > === *History* ================================================================ > Date Submitted: 2009-12-11 07:58:07 GMT+00:00 > Submitted By: <User 1-FHVYR> > Status Changed Date Updated Updated By > 2-Incomplete 2009-12-15 15:38:53 GMT+00:00 <User 1-PWPBN> > 1-Dispatched 2009-12-16 01:34:27 GMT+00:00 <User 1-FHVYR> > 3-Accepted 2009-12-17 14:03:43 GMT+00:00 <User 1-PWPBN> > 6-Fix Understood 2009-12-18 18:55:30 GMT+00:00 <User 1-PWPBN> > === *Service Request* ======================================================== > Impact: Significant > Functionality: Secondary > Severity: 3 > Product Name: solaris > Product Release: osol_2009.06u9 > Product Build: > Operating System: osol_2009.06u6 > Hardware: generic > Submitted Date: 2009-12-11 07:58:08 GMT+00:00 > === *Multiple Release (MR) Cluster* - 0 ====================================== > _______________________________________________ > ksh93-integration-discuss mailing list > ksh93-integration-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
