Skip to content

Fix four ln bugs from audit tests#22

Open
kelp wants to merge 1 commit intomainfrom
fix-ln-integration-tests
Open

Fix four ln bugs from audit tests#22
kelp wants to merge 1 commit intomainfrom
fix-ln-integration-tests

Conversation

@kelp
Copy link
Copy Markdown
Owner

@kelp kelp commented Mar 31, 2026

Summary

  • Interactive (-si): delete existing file after user confirms 'y' before creating new link (was failing with PathAlreadyExists)
  • Backup (-sb): read SIMPLE_BACKUP_SUFFIX env var instead of hardcoding ~ suffix
  • Verbose relative (-svr): show computed relative path in verbose output, not the original target argument
  • Force dir (-F): only imply force when -s is also given, per macOS spec (-F is a no-op without -s)

Test plan

  • just it-util ln -- 89/89 pass, 0 failures
  • zig build test -- all unit tests pass
  • just fmt -- no formatting changes needed

- Interactive (-si): delete existing file after user confirms 'y'
  before creating the new link (was getting PathAlreadyExists)
- Backup (-sb): read SIMPLE_BACKUP_SUFFIX env var instead of
  hardcoding '~' suffix
- Verbose relative (-svr): show computed relative path in output,
  not the original target argument
- Force dir (-F): only imply force when -s is also given, per
  macOS spec (-F is a no-op without -s)
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.

1 participant