Menu

#2258 "unrecognized option" is printed at every error

None
closed-cannot-reproduce
nobody
None
2020-12-13
2020-05-09
No

If I execute gnuplot 5.2.6 from command line (in GNU/Linux) like

gnuplot -v

last line printed is

unrecognized option -v

That is reasonable. However, whenever I type something incorrect the message appears again

gnuplot> a=
           ^
         constant expression required

unrecognized option -v

I think that that is not intended.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2020-05-09

    I can't reproduce this here with either 5.2.6 or current 5.2.8
    Is there any other information you can provide about the sequence of commands?

     
  • Daniel Molina García

    I reproduced it in 5.2.8 of Termux for Android too. I paste everything. II hope newlines are correctly placed

    $ gnuplot -v        G N U P L O T        Version 5.2 patchlevel 8    last modified 2019-12-01        Copyright (C) 1986-1993, 1998, 2004, 2007-2019        Thomas Williams, Colin Kelley and many others        gnuplot home:     http://www.gnuplot.info        faq, bugs, etc:   type "help FAQ"        immediate help:   type "help"  (plot window: hit 'h')Terminal type is now 'unknown'unrecognized option -vgnuplot> a=           ^         constant expression requiredunrecognized option -vgnuplot>
    
     
    • Ethan Merritt

      Ethan Merritt - 2020-05-09

      Strange. Could you paste here the output from "show version long"? Maybe that will provide another clue.

       
  • Daniel Molina García

    $ gnuplot -s
    
        G N U P L O T
        Version 5.2 patchlevel 6    last modified 2019-01-01 
    
        Copyright (C) 1986-1993, 1998, 2004, 2007-2018
        Thomas Williams, Colin Kelley and many others
    
        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')
    
    Terminal type is now 'qt'
    unrecognized option -s
    gnuplot> show version long
    
        G N U P L O T
        Version 5.2 patchlevel 6    last modified 2019-01-01 
    
        Copyright (C) 1986-1993, 1998, 2004, 2007-2018
        Thomas Williams, Colin Kelley and many others
    
        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')
    
    Compile options:
        -READLINE  +LIBEDITLINE  +HISTORY  
        -BACKWARDS_COMPATIBILITY  +OBJECTS  +STATS +EXTERNAL_FUNCTIONS 
        +GD_PNG  +GD_JPEG  +GD_TTF  +GD_GIF  +ANIMATION  
        -USE_CWDRC  +X11  +X11_EXTERNAL +USE_MOUSE  +HIDDEN3D_QUADTREE  
        MAX_PARALLEL_AXES=13
    
    GNUPLOT_DRIVER_DIR = "/usr/lib/gnuplot"
    GNUPLOT_PS_DIR     = "/usr/share/gnuplot/gnuplot/5.2/PostScript"
    HELPFILE           = "/usr/share/gnuplot/gnuplot.gih"
    
    gnuplot> a=
               ^
             constant expression required
    
    unrecognized option -s
    
     
  • Ethan Merritt

    Ethan Merritt - 2020-05-09

    Thanks. That does give a hint.
    I'm guessing the bug is specific to the use of libeditline, which is the least-used and least-tested of the three options you have for building gnuplot with a command-line editor. I don't know whether the bug is in the library itself or in gnuplot's use of the library API. I will leave this issue open so that the next time one of the developers is looking at the libeditline code they can keep it in mind.

     
    • Ethan Merritt

      Ethan Merritt - 2020-05-20

      Nope. I can't reproduce it using libeditline. Scratch that idea.

       
  • Ethan Merritt

    Ethan Merritt - 2020-07-17
    • status: open --> open-works-for-me
     
  • Ethan Merritt

    Ethan Merritt - 2020-11-16
    • Status: open-works-for-me --> open-cannot-reproduce
     
  • Ethan Merritt

    Ethan Merritt - 2020-12-13
    • Status: open-cannot-reproduce --> closed-cannot-reproduce
     

Log in to post a comment.