bugGNU Octave - Bugs: bug #31423, octave exit status incorrect from...

 
 

bug #31423: octave exit status incorrect from unrecognized option

Submitter:  None
Submitted:  Fri 22 Oct 2010 11:55:44 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Steve Ward Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 23 Oct 2010 01:19:31 AM UTC, comment #1: 

I checked in the following change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/8aa93f43bae8

John W. Eaton <jwe>
Group administrator
Fri 22 Oct 2010 11:55:44 PM UTC, original submission:  

When an unrecognized option is given, octave exits with exit status zero rather than non-zero.


Example:

$ octave --bad-option > /dev/null
octave: unrecognized option '--bad-option'

$ echo $?
0


Expected results:

$ echo $?
1

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-23 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code