bugGNU Octave - Bugs: bug #58748, function doesn't return expected...

 
 

bug #58748: function doesn't return expected number of arguments

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Sat 11 Jul 2020 12:08:25 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 12 Jul 2020 09:09:11 PM UTC, comment #3: 

I pushed the following changeset on stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/af1a9c1db88e

John W. Eaton <jwe>
Group administrator
Sun 12 Jul 2020 09:09:00 PM UTC, comment #2: 

I pushed the following changeset on stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/af1a9c1db88e

John W. Eaton <jwe>
Group administrator
Sat 11 Jul 2020 10:40:17 PM UTC, comment #1: 

This could have the same cause as bug #58751.

Fernando <tutissanalio>
Sat 11 Jul 2020 12:08:25 PM UTC, original submission:  

Running the following in Octave 7 (hg id 24f43782e04c) results in an error:

>> [status, attr] = fileattrib (P_tmpdir ());

error: if: undefined value used in conditional expression
error: called from
    dos at line 52 column 5
    fileattrib at line 116 column 21


It was still working correctly in a build from last week.

I'm not certain what is happening here. So the bug title might be wrong.
Lines 52ff in "dos" read:

  if (! isunix ())
    [status, text] = system (command);
    if (nargin > 1 || nargout == 0)
      printf ("%s\n", text);
    endif
  endif


Running a script with the following displays "test" and no error message is shown:

if (! isunix ())
  disp ("test");
endif


This might be related to the recent changes related to function output arguments. So the stable branch might be affected, too.

Markus Mützel <mmuetzel>
Group administrator

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by tutissanalio (Posted a comment)
  • -email is unavailable- added by mmuetzel (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
    2020-07-27 jwe StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2020-07-12 jwe StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code