Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "lvirden"
  9. subsystem changed to: ""
  10. title changed to:
    Slight clarification on expr man page would be helpful
    
  11. type changed to: "Bug"