Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64c10eb25f32d6e125d72b0abcfa2403a49b81d3
Ticket: 548686ffffffffffffffffffffffffffffffffff
expr || fails with hex data
User & Date: nobody on 2002-04-25 16:16:39
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    running on solaris 5.7, tcl 8.3.4 compiled with gcc
    version egcs-2.91.66 19990314 (egcs-1.1.2 release)
    
    do:
    set a 0x0
    set b 0
    expr {$a||$b}; # FAIL! expected boolean value but got
    "0x0"
    
    expr {0x0||0}; # PASSES
    
    This is astonishing, to say the least.
    
    There appears to be some some problem with variable
    expansion done by expr,
    radix conversion, and short-circuiting Boolean
    evaluation.
    
    
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "None"
  10. title changed to: "expr || fails with hex data"
  11. type changed to: "Bug"