bugGNU Octave - Bugs: bug #51461, octave -Wq doesn't work correctly


bug #51461: octave -Wq doesn't work correctly

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Thu 13 Jul 2017 06:10:03 PM UTC  
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 17 Jul 2017 07:31:45 PM UTC, comment #1: 
Mike Miller <mtmiller>
Project Administrator
Thu 13 Jul 2017 06:10:03 PM UTC, original submission:  

Normally calling "octave -Wq" should be the same as calling "octave -W -q". But because the octave stub program doesn't use getopt, it doesn't handle the options -W and -q correctly when they are specified together (either as -Wq or -qW).

And it's not enough to just check for the exact arguments "-Wq" or "-qW", because these options can also be combined with other options (e.g. "octave -qfHW"). The most robust solution would be to add getopt support to main.in.cc.

Another option might be to check for an argument that starts with a single hyphen and process the following single letter options manually.

Mike Miller <mtmiller>
Project Administrator


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

Attach Files:

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 mtmiller (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-17 mtmiller StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5