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: InterpreterSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating 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:

Fixed on the default branch with

https://hg.savannah.gnu.org/hgweb/octave/rev/2387ce427601

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 17 Jul 2017 07:31:45 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1