bugGNU Octave - Bugs: bug #48620, octave no longer sets --quiet for...

 
 

bug #48620: octave no longer sets --quiet for non-interactive usage (--eval and script without --persist)

Submitter:  Carnë Draug <carandraug>
Submitted:  Sun 24 Jul 2016 11:05:03 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 26 Jul 2016 01:58:38 PM UTC, comment #4: 

I pushed the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/a032ffb80704

As for testing, I guess we could add a separate fixed test script (could be written in Octave's scripting language) that does whatever is needed, including invoking shell scripts or running other copies of Octave.  Could we track that issue separately from this bug report?

John W. Eaton <jwe>
Group administrator
Tue 26 Jul 2016 11:21:21 AM UTC, comment #3: 

How can we add tests for this?  Also for the extra whitespace at the end?

A new specific check-X target on test/module.mk and have a shell script or should we come up with something that will scale better if we add more tests in the future?  I guess we should have tests for other Octave command line options.

Carnë Draug <carandraug>
Group Member
Tue 26 Jul 2016 12:49:48 AM UTC, comment #2: 

Seems likely that I broke this recently with my changes to the way Octave is starting.

I'll take a look at it.

John W. Eaton <jwe>
Group administrator
Mon 25 Jul 2016 08:15:58 PM UTC, comment #1: 

I can see this problem on Windows too.
If someone wants to bisect, revision ccf50f029999 is still OK.

Even when the behavior is "OK", I get blank line,
then the prompt, and then Octave answer.
It should be - Octave answer and then the pronpt, without blank line.

Avinoam Kalma <avinoam>
Group Member
Sun 24 Jul 2016 11:05:03 PM UTC, original submission:  

Not sure when this happened but Octave no longer defaults to the --silent option for non-interactive options.


$ /usr/local/bin/octave --eval 'OCTAVE_VERSION'
ans = 4.0.1
carandraug@word:~/dev/octave-forge/project-web$ ~/.local/bin/octave --eval 'OCTAVE_VERSION'
GNU Octave, version 4.1.0+
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

ans = 4.1.0+


The same happens for actual octave programs.

This was fixed before with http://hg.savannah.gnu.org/hgweb/octave/rev/f81a1da191e4

Carnë Draug <carandraug>
Group Member

 

(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 avinoam (Posted a comment)
  • -email is unavailable- added by carandraug (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-31 carandraug StatusReady For Test Fixed
    2016-07-26 jwe StatusConfirmed Ready For Test
        Open/ClosedOpen Closed
    2016-07-26 jwe Assigned toNone jwe
    2016-07-25 avinoam StatusNone Confirmed
    2016-07-24 carandraug Summaryoctave prints header to run script octave no longer sets --quiet for non-interactive usage (--eval and script without --persist)

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code