[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58748] function doesn't return expected numbe
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #58748] function doesn't return expected number of arguments |
Date: |
Sat, 11 Jul 2020 08:08:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.61 |
URL:
<https://savannah.gnu.org/bugs/?58748>
Summary: function doesn't return expected number of arguments
Project: GNU Octave
Submitted by: mmuetzel
Submitted on: Sat 11 Jul 2020 02:08:25 PM CEST
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58748>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58748] function doesn't return expected number of arguments,
Markus Mützel <=