|
[ ghc-Bugs-1339991 ] getOpt' checks "non-option options": msg#00065lang.haskell.glasgow.bugs
Bugs item #1339991, was opened at 2005-10-27 14:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1339991&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: libraries/base Group: 6.4.1 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: getOpt' checks "non-option options" Initial Comment: When given RequireOrder the getOpt' function should not parse options following a non-option. But currently (as of version 6.4.1 of ghc) it does. E.g. when parsing with RequireOrder and if invalid-opt3 is not a recognized option then the following produces an error: progname --valid-opt1 --valid-opt2 non-opt --invalid-opt3 However, anything after non-opt should not be parsed. The problem can be fixed as follows: 164c164 < procNextOpt (NonOpt x) RequireOrder = ([],x:rest,us,[]) --- > procNextOpt (NonOpt x) RequireOrder = ([],x:rest,[],[]) Best Sebastian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1339991&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: repeatable instance of "impossible" error, Donald Bruce Stewart |
|---|---|
| Next by Date: | bug report, stg_ap_v_ret, Tim Daly Jr. |
| Previous by Thread: | [Visual Haskell] Experiences and some clear bugs, Esa Ilari Vuokko |
| Next by Thread: | [ ghc-Bugs-1339991 ] getOpt' checks "non-option options", SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |