Hi Ian, On Thu, Nov 8, 2018 at 1:03 AM Ian Jackson <ijack...@chiark.greenend.org.uk> wrote: > > To reproduce: > > $ rm -rf d > $ mkdir d > $ cd d > $ rm -rf ../d > $ env - pwd > pwd: couldn't find directory entry in '..' with matching i-node > $ tclsh8.6 > % file delete spong > error deleting "spong": bad address in system call argument > %
Right, the error message isn't an appropriate one. > > strace shows: > > getcwd(0x7ffcf224aeb0, 4097) = -1 ENOENT (No such file or > directory) > lstat(NULL, 0x7ffcf224c100) = -1 EFAULT (Bad address) > > Not sure why `file delete spong' needs to call cwd at all, but > certainly it should have a proper error check. I'll forward the bug upstream shortly. Thank you for the report. Cheers! -- Sergei Golovan