Skip to content

fix(ln): prompt before backup with -b -i (#1675) - #1728

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/1675-ln-backup-final
Nov 14, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/1675-ln-backup-final

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Closes #1675. With -b and -i, ln now asks replace 'X'? before making the backup (ln.c:277-283 then :286-301); n declines with no backup and rc 1, multi-dest aggregates ok (ln.c:673). 7 CLI forms byte-identical to GNU 9.4 except the existing backslash path spelling. ln tests 10/10.

- link_one prompts replace before make_backup (ln.c:277-283 then :286-301)
- n declines with no backup and rc 1; multi-dest aggregates ok (ln.c:673)
- fixture fix for the multi-dest cell; 10/10 ln tests
- CLI matrix A-G byte-identical to GNU 9.4 (except existing backslash spelling)
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 14, 2026 12:12
@caomengxuan666
caomengxuan666 merged commit 651ddd2 into main Nov 14, 2026
8 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/1675-ln-backup-final branch November 14, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ln] -b 与 -i 同用时提示顺序与 GNU 不符(未提示直接备份)

1 participant