octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]