uutils/coreutils

mv hardlinks should be preserved when moving into a different directory

Open

#4,833 opened on May 6, 2023

View on GitHub
 (8 comments) (0 reactions) (0 assignees)Rust (23,246 stars) (1,852 forks)batch import
U - mvgood first issue

Description

Testcase:

export C=/usr/bin/
export C="target/debug/coreutils "
dir=hlink
other_partition_tmpdir=/dev/shm/tmp769306

rm -rf $dir $other_partition_tmpdir
mkdir $dir $other_partition_tmpdir
> $dir/a
ln $dir/a $dir/b

${C}mv $dir "$other_partition_tmpdir"

ls -1i "$other_partition_tmpdir/$dir"

They should be equal. They aren't currently

Contributor guide