Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56ae7c53e74d4beb34fc5d835506c2b30beaf6db
Ticket: 218160ffffffffffffffffffffffffffffffffff
expr fails
User & Date: nobody on 2000-10-26 00:53:56
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2194 Bug
    Version: 8.0.4
    SubmitDate: '1999-06-07'
    LastModified: '1999-08-08'
    Severity: LOW
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: 2.6
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '1999-08-08'
    
    
    Name:
    steve szabo
    
    Extensions:
    none
    
    CustomShell:
    none
    
    ReproducibleScript:
    safina $ tcl
        tcl> puts [ expr 00 + 1 ]
        1
        tcl> puts [ expr 01 + 1 ]
        2
        tcl> puts [ expr 02 + 1 ]
        3
        tcl> puts [ expr 03 + 1 ]
        4
        tcl> puts [ expr 04 + 1 ]
        5
        tcl> puts [ expr 05 + 1 ]
        6
        tcl> puts [ expr 06 + 1 ]
        7
        tcl> puts [ expr 07 + 1 ]
        8
        tcl> puts [ expr 08 + 1 ]
        Error: syntax error in expression "08 + 1"
        tcl> puts [ expr 09 + 1 ]
        Error: syntax error in expression "09 + 1"
        tcl> puts [ expr 10 + 1 ]
        11
        tcl> puts [ expr 11 + 1 ]
        12
        tcl> puts [ expr 12 + 1 ] 
        13
        tcl> puts [ expr 13 + 1 ]
        14
    
    ObservedBehavior:
    expr dies on 08 + 1 or 09 + 1
    
    
    
    As specified in the expr man page, numbers beginning with 0
    are interpreted as octal, for which 08 and 09 are invalid. 
    -- 08/08/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.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: "69. Other"
  10. title changed to: "expr fails"
  11. type changed to: "Bug"