bugGNU Octave - Bugs: bug #44712, system() don't capture STDERR...

 
 

bug #44712: system() don't capture STDERR screen output

Submitted by:  sergey plotnikov <nul0m>
Submitted on:  Fri 03 Apr 2015 12:33:54 PM UTC  
 
Category: Octave FunctionSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 04 May 2015 02:36:28 PM UTC, comment #6:

in that case, i'd be for an extra option of "system" which reflects Matlab's behavior by default

sergey plotnikov <nul0m>
Mon 04 May 2015 02:27:52 PM UTC, comment #5:

"--braindead", as I understand it, doesn't mean "make it Matlab compatible". It's not supposed to affect behaviour. Octave's goal is already to be to behave like Matlab. The --braindead option is only for superficial cosmetic differences that don't really impact behaviour, such as changing the default prompt or the default matrix display formats.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 04 May 2015 02:05:55 PM UTC, comment #4:

Why don't we go with a user preference variable?.. In this case I'd expect it to be a part of "--braindead" option (redirecting all to stdout).

sergey plotnikov <nul0m>
Mon 04 May 2015 01:47:24 PM UTC, comment #3:

Perhaps we should have a version of system (with a different name, or as an option) that can capture stderr separately, or let it go to stderr if the user wants that behavior? It really seems better to me to not redirect stderr to stdout unless requested.

John W. Eaton <jwe>
Project Administrator
Sun 03 May 2015 10:39:45 PM UTC, comment #2:

Marking as confirmed Matlab incompatibility: both stdout and stderr together should be returned in the output string.

Changing this for the 4.0 release might break some expectations in existing code.

Mike Miller <mtmiller>
Project Administrator
Fri 03 Apr 2015 03:04:48 PM UTC, comment #1:

I posted this issue before, and someone provided a workaround:

[st, out] = system ('foo 2>&1');

This solved my problem, but I still think it is better to make the behavior consistent.

Anonymous
Fri 03 Apr 2015 12:33:54 PM UTC, original submission:

As far as I can tell Matlab captures everything if system() is called with two output arguments and suppresses all error messages.

Matlab:

Octave:

sergey plotnikov <nul0m>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by cbm
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by nul0m (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Jul 2016 04:49:25 AM UTCcbmCarbon-Copy-=>Added cbm
    Sun 27 Dec 2015 10:01:53 PM UTCrik5Dependencies-=>bugs #46754 is dependent
    Sun 03 May 2015 10:39:45 PM UTCmtmillerCategoryNone=>Octave Function
      Severity3 - Normal=>2 - Minor
      StatusNone=>Confirmed
      Release4.0.0-rc2=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1