Overview
| Artifact ID: | e20b453e5e697c9d72a8e92aede424b4290ab391 |
|---|---|
| Ticket: | 1027849fffffffffffffffffffffffffffffffff
Slight clarification on expr man page would be helpful |
| User & Date: | lvirden on 2004-09-14 11:46:20 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Currently, the expr(n) man page leaves readers a bit confused concerning the special limitation on operands that expr requires. In the rest of Tcl, a single word string value need not be quoted. However, in expr , this string format must be quoted. This is specifically documented in expr(n) in operand formats 3 and 4. HOWEVER, earlier in the man page, the doc goes through the interpretation of the operands and states that if the operand matches any of the integer formats, it will be treated as an integer, then if it matches any of the floating number formats, it will be treated as a floating number. The man page then states "[i]f no numeric interpretation is possible, then an operand is left as a string [...]". It seems to me that the man page, at this point, should say: If no numeric interpretation is possible, and the operand is enclosed in either double quotes or braces, then the operand is left as a string [...]. If none of these cases are true, expr will treat the expression as a syntax error. This would clarify to the reader the case they may miss concerning the error.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "lvirden"
- subsystem changed to: ""
- title changed to:
Slight clarification on expr man page would be helpful
- type changed to: "Bug"