bugGNU Octave - Bugs: bug #46754, MXE Octave - system command...

 
 

bug #46754: MXE Octave - system command behaves different on error

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Fri 25 Dec 2015 10:24:28 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Dec 2015 10:01:53 PM UTC, comment #3: 

Matlab's documentation is clear about the dos() command and how it handles system on a Windows platform.  Does Matlab also redirect stdout and stderr to a single stream on Unix platforms?  That would be worth testing.

Most Octave developers work on Linux and it is very unconventional to redirect stderr to stdout without specifically being requested to do so by the programmer.

This is a duplicate of bug #44712.  I'm going to close this report and leave that one open.

Rik <rik5>
Group administrator
Fri 25 Dec 2015 08:47:38 PM UTC, comment #2: 

I prefer the Matlab way, which sends the error to y (in the example) and not to the screen.

for example


[x,y] = system ('kuku');
if (x == 0)
## kuku exists do the following things ....

else
## kuku does not exist
end


without filling the screen with garbage.

Avinoam Kalma <avinoam>
Group Member
Fri 25 Dec 2015 06:16:08 PM UTC, comment #1: 

Looks like the (cosmetic) issue is with Matlab, isn't it?

Philip Nienhuis <philipnienhuis>
Group Member
Fri 25 Dec 2015 10:24:28 AM UTC, original submission:  


In Matlab


>> [x,y] = system ('kuku');
>> x

x =

     1

>> y

y =

'kuku' is not recognized as an internal or external command,
operable program or batch file.


In Octave


>> [x,y] = system ('kuku');
'kuku' is not recognized as an internal or external command,
operable program or batch file.
>> x
x =  127
>> y
y =
>>


Avinoam Kalma <avinoam>
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

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by avinoam (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-27 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2015-12-27 rik5 Dependencies- Depends on bugs #44712

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code