From Bugzilla Helper: User-Agent: Mozilla/4.77C-SGI [en] (X11; U; IRIX64 6.5 IP30) Description of problem: While I was building an alternate version of tcl/tk on my Red Hat 7.1 system, I noticed that some of the regression tests were failing. I believe all of them were failing because of the same reason, which is, they couldn't rename a directory over NFS. Here is a snippet of code directly from one of the tests that demontrates the problem: catch {file delete -force -- tfa tfad} file mkdir tfa tfad/tfa file rename -force tfa tfad set result [expr ![file isdir tfa]] file delete -force tfad set result I ran this even with the tcl/tk installed by default with Red Hat 7.1, and I saw the same exact problem. To summarize, go into a directory that's NFS mounted and run the above script and you will see the following errors: error renaming "tfa" to "tfad/tfa": file busy while executing "file rename -force tfa tfad" (file "testtcl.tcl" line 3) Note that this does not happen under Red Hat 6.2. tcl executes the above script fine there. Also, the same version of tcl runs fine under IRIX in a similar scenario. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: To summarize, go into a directory that's NFS mounted and run the above script and you will see the following errors: error renaming "tfa" to "tfad/tfa": file busy while executing "file rename -force tfa tfad" (file "testtcl.tcl" line 3) Actual Results: error renaming "tfa" to "tfad/tfa": file busy while executing "file rename -force tfa tfad" (file "testtcl.tcl" line 3) Expected Results: It should've renamed the directory with no error messages. Additional info: Note that this does not happen under Red Hat 6.2. tcl executes the above script fine there. Also, the same version of tcl runs fine under IRIX in a similar scenario.
Reproduced with the current tclsh in rawhide.
This fixed in expect-5.38.0 and later at least afaict.