[Pkg-tcltk-devel] Bug#913189: /usr/bin/tclsh8.6: `file delete' can produce EFAULT

Stefan Sobernig stefan.sobernig at wu.ac.at
Thu Nov 8 23:18:40 GMT 2018


Hi!

Just to be clear: The manpage of [file delete] states that

> Trying to delete a non-existent file is not considered an error. 

see https://www.tcl.tk/man/tcl8.6/TclCmd/file.htm#M12

or, the Wiki states that

> If pathname is a non-existent file, nothing is done and it is not an error.

see https://wiki.tcl-lang.org/page/file+delete

... so your expectation is that this behaviour also applies to this
EFAULT instance?

If so (I agree), you might consider opening a ticket at
https://core.tcl.tk/tcl/login?g=/tcl/tktnew&anon

This can also be (re-)produced under macOs, FWIW:

$  rm -rf d
$ mkdir d
$ cd d
$ rm -rf ../d
$ env - pwd
pwd: .: No such file or directory
$ tclsh8.6
% pwd
error getting working directory name: no such file or directory
% file delete spong
error deleting "spong": bad address in system call argument
% exit

Stefan



More information about the Pkg-tcltk-devel mailing list