uutils/coreutils

mv hardlinks should be preserved when moving into a different directory

Open

#4,833 建立於 2023年5月6日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)Rust (1,852 fork)batch import
U - mvgood first issue

倉庫指標

Star
 (23,246 star)
PR 合併指標
 (平均合併 5天 23小時) (30 天內合併 239 個 PR)

描述

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

貢獻者指南