Closed
Description
Environment: Ubuntu 20.04, uutils main branch (git commit 1e8e16b), GNU coreutils v8.30
Steps to reproduce:
# create a directory on a different filesystem
mkdir /dev/shm/tmp
# create a special file, in this case a FIFO
mknod pipe p
mv pipe /dev/shm/tmp
What happens now: uutils mv
hangs indefinitely and never terminates.
What I expected to happen: GNU mv
copies the special file to the target directory
Notes: this is causing a failure in the GNU test file tests/mv/mv-special-1.sh
.
Because the source file and the destination are on different filesystems, the file is copied to the destination and then the source file is removed; this can be seen by passing the --verbose
option:
$ mv --verbose pipe /dev/shm/tmp
copied 'pipe' -> '/dev/shm/tmp/pipe'
removed 'pipe'