[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57830] rmdir and other file functions should
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1 |
Date: |
Sun, 16 Feb 2020 13:14:38 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<https://savannah.gnu.org/bugs/?57830>
Summary: rmdir and other file functions should not return
status unless nargout > 1
Project: GNU Octave
Submitted by: rik5
Submitted on: Sun 16 Feb 2020 10:14:36 AM PST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
This bug is similar to bug #57799 which resolved the same situation for
mkdir().
The Matlab compatibility issue regards file functions (such as rmdir) when
called with no output arguments, or more than 1 output argument (nargout >
1).
In Matlab, when called with no output arguments, and the file operation fails,
an error is thrown and a message printed to the screen. If there is at least
one output argument (status) then no error is thrown because the failure of
the operation is signaled through the return variable instead. This is a
sensible pattern that Octave should follow as well.
Functions which *appear* to require changeover are:
link
symlink
rename
rmdir
unlink
mkfifo
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57830>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1,
Rik <=
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Mike Miller, 2020/02/16
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/16
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18
- [Octave-bug-tracker] [bug #57830] rmdir and other file functions should not return status unless nargout > 1, Rik, 2020/02/18