* Francesco Potortì <Potorti@isti.cnr.it> [2025-04-22 17:14]:
The behavior of unlink and many other functions has been changed in
version 7.0 of Octave. This is well documented. Here is an excerpt of
the file etc/NEWS.7.md:
[https://hg.octave.org/octave/file/tip/etc/NEWS.7.md]
==========================================================================
### General improvements
- Many functions in Octave can be called in a command form---no
parentheses for invocation and no return argument assignment---or in a
functional form---parentheses and '=' for assignment of return values.
**Command Form Example**
`mkdir new_directory`
**Function Form Example**
`status = mkdir ("new_directory")`
Octave now handles errors that occur in a consistent manner. If
called in command form and there is a failure, an error is thrown
and a message printed. If called in functional form, no error or
message is printed and the failure is communicated to the programmer
via the output status variable.
The following list of functions have been modified.
* `copyfile`
* `fcntl`
* `fileattrib`
* `kill`
* `link`
* `mkfifo`
* `movefile`
* `rename`
* `rmdir`
* `symlink`
* `unlink`
==========================================================================
You must change your script like this:
[ret, status] = unlink ("nonexistent_file");
I am hereby closing this bug report. Please, feel free to reopen it if
you disagree with me.
Best,
Rafael Laboissière