[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async
From: |
Richard |
Subject: |
[Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab |
Date: |
Tue, 9 Jul 2019 06:44:21 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0 |
URL:
<https://savannah.gnu.org/bugs/?56600>
Summary: 'system' commnad returns pid for async process, not
on Matlab
Project: GNU Octave
Submitted by: crobar
Submitted on: Tue 09 Jul 2019 10:44:20 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Richard Crozier
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: GNU/Linux
_______________________________________________________
Details:
The Octave 'system' command operates differently from Matlab (on Linux at
least, not tried windows) in that when an async process is started it returns
the pid of the process in the status output. In contrast Matlab just returns
zero if the command was successful.
In principle I like that Octave returns the PID, it's really useful, but it
does break code that tests for zero return value, and is not compatible with
Matlab. Perhaps a third argument could be added to Octave's 'system' command?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56600>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab,
Richard <=
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, Richard, 2019/07/09
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, Mike Miller, 2019/07/09
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, Richard, 2019/07/09
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, Mike Miller, 2019/07/09
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, John W. Eaton, 2019/07/09
- [Octave-bug-tracker] [bug #56600] 'system' commnad returns pid for async process, not on Matlab, Richard, 2019/07/10
- [Octave-bug-tracker] [bug #56600] system blocks when user calls a background command ending in ampersand, Mike Miller, 2019/07/10