Overview
| Artifact ID: | 176c28821b0e5b39d91381f6c5bb0f1a48a882a3 |
|---|---|
| Ticket: | 1962090fffffffffffffffffffffffffffffffff
Failure of string and expr commands |
| User & Date: | nobody on 2008-05-11 22:46:30 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
I was trying to do some data validation, and ran across the following situation, which the example below demonstrates. % info patchlevel 8.4.17 % set s "5\n" 5 % string is double -strict $s 1 % expr {$s >= 0.0} 1 The string 's' is clearly not a double since it contains a control character, however the string test for double is returning true, which it should fail. The expr command is even more puzzling since the string is not a number, but the comparison returns true. IMHO both of these tests should return zero as the string is clearly not a double. - foundin changed to: "obsolete: 8.4.17"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "11. Conversions from String"
- title changed to: "Failure of string and expr commands"
- type changed to: "Bug"