How to mark files for deletion with Octave-4.4?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to mark files for deletion with Octave-4.4?

Olaf Till-2
Hi,

for automatically deleting files at Octave exit, up to Octave-4.2, I
called 'mark_for_deletion ("path");' and exited with
'clean_up_and_exit (1);'.

In Octave-4.2, this also worked with 'exit (1);' instead of
'clean_up_and_exit (1);'

In Octave-4.4, it only sometimes worked with 'clean_up_and_exit (1);'
and doesn't work with 'exit (1);' (the marked file is not deleted at
exit).

What is the right way to do this with Octave-4.4?

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to mark files for deletion with Octave-4.4?

Olaf Till-2
On Sun, May 13, 2018 at 08:43:46AM +0200, Olaf Till wrote:

> Hi,
>
> for automatically deleting files at Octave exit, up to Octave-4.2, I
> called 'mark_for_deletion ("path");' and exited with
> 'clean_up_and_exit (1);'.
>
> In Octave-4.2, this also worked with 'exit (1);' instead of
> 'clean_up_and_exit (1);'
>
> In Octave-4.4, it only sometimes worked with 'clean_up_and_exit (1);'
> and doesn't work with 'exit (1);' (the marked file is not deleted at
> exit).
>
> What is the right way to do this with Octave-4.4?
Sorry, I was confused. What didn't work was deleting the file if
Octave was killed by a signal (which had to be -9 now), so it had
probably had nothing to do with the choice between 'exit' and
'clean_up_and_exit'.

Please forget it for now, I'll probably come back to it later.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

signature.asc (849 bytes) Download Attachment