Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8933

Command line arithmetic partly broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.10/02, 6.10/04
    • Fix Version/s: 6.10/06
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Observed on CentOS/RHEL 7 (ROOT installed from EPEL), macOS 10.12.6 (ROOT installed from Homebrew).

    • Development:

      Description

      Certain simple arithmetic expressions on the command line seem to put the interpreter in a malfunctioning state. Example:

      centos7 % root -b
         ------------------------------------------------------------
        | Welcome to ROOT 6.10/02                http://root.cern.ch |
        |                               (c) 1995-2017, The ROOT Team |
        | Built for linuxx8664gcc                                    |
        | From tag v6-10-02, 6 July 2017                             |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
         ------------------------------------------------------------
       
      root [0] sin(3.14)*3.0
      (double) 0.004778
      root [1] 1+1
      (int) 2
      root [2] (1.0/2.0)*3.0
      root (cont'ed, cancel with .@) [3].@
      root [4] sin(3.14)*3.0
      root (cont'ed, cancel with .@) [5].@
      root [6] 1+1
      root (cont'ed, cancel with .@) [7].@
      root [8] 

      This does no seem to occur in ROOT 6.08 or earlier (albeit tested on a different Linux platform, compiled differently).

        Attachments

          Activity

            People

            Assignee:
            vvasilev Vasil Georgiev Vasilev
            Reporter:
            47f9f67876d662e47ef7 Ole Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: