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

贡献者指南