Overview
| Artifact ID: | 02ae11fd0fff3f43cf74cc8d3acd4b7b43141f2b |
|---|---|
| Ticket: | 803968ffffffffffffffffffffffffffffffffff
Opt badly guesses type of null default values |
| User & Date: | revar on 2003-09-10 20:00:43 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
In optparse.tcl, there was an optimization made between CVS file version 1.8 and 1.9 that replaced the old regexp number pattern check with a [string is integer] check. Unfortunately, this will return true for null strings. This breaks all code that uses opt0.4 with null string default values without specifying them as strings with -string. The fix for this is to add a short test at the beginning of proc OptGuessType in optparse.tcl: if {$arg == "" } { return string } - foundin changed to: "obsolete: 8.4.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "revar"
- subsystem changed to: "31. opt Package"
- title changed to: "Opt badly guesses type of null default values"
- type changed to: "Bug"