#1183 Exit/Quit Bug

closed-fixed
nobody
Other (155)
5
2012-10-20
2012-10-11
Robert Dunn
No

When executed within a called script, exit and quit commands do not return control to caller if executed within a compound if-statement. When executed from a non-compound if-statement, control is returned as expected.

Stated differently, when exit/quit is executed within a compound if-statement, it is treated as a C/C++-style break rather than a return.

Sample script attached.

---------------

Using OpenSUSE 12.2 (32-bit), gnuplot v4.6, patchlevel 0.

Discussion

  • Robert Dunn
    Robert Dunn
    2012-10-11

    Test script

     
    Attachments
  • Ethan Merritt
    Ethan Merritt
    2012-10-20

    Fixed in CVS for 4.6 and 4.7
    Thank you for the bug report.

     
  • Ethan Merritt
    Ethan Merritt
    2012-10-20

    • status: open --> closed-fixed