bugGNU Octave - Bugs: bug #49589, octave --eval starts slightly...

 
 

bug #49589: octave --eval starts slightly differently from octave --no-gui --eval

Submitter:  Mike Miller <mtmiller>
Submitted:  Fri 11 Nov 2016 08:26:21 PM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
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 Feb 2019 08:26:25 PM UTC, comment #1: 

This is fixed for me in Octave 4.4 and later.

Mike Miller <mtmiller>
Group Member
Fri 11 Nov 2016 08:26:21 PM UTC, original submission:  

This has to do with the controlling terminal and the way the octave executable is or is not detached from the terminal.

Compare the following


$ octave --no-gui --eval "system (sprintf('ps o tname h %d', getpid));"
pts/1
$ octave --eval "system (sprintf('ps o tname h %d', getpid));"
?


Obvious workaround is to always run batch scripts with the --no-gui option, but I think (maybe it's just me) that it would be nice if Octave knew that if it is not running in interactive mode, it should not fork and detach from the controlling terminal.

I am sure I have seen some odd behavior with signals or job control relating to this, which is when I first noticed it and started running all batch command tests with --no-gui.

I don't see an easy way to do this other than replicating the entire command line processing logic from the full octave program into the octave shim wrapper, so that it knows whether octave-gui will be running the GUI or not.

Mike Miller <mtmiller>
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

 

CC list is empty

 

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 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2019-02-26 mtmiller StatusPostponed Fixed
    Open/ClosedOpen Closed
2019-02-26 mtmiller Carbon-CopyRemoved 80942 -

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code