Skip to content

Case-Only Change On Case-Insensitive Filesystem #14

Description

@Recognition101

Reproduction steps: On a case-insensitive filesystem (ex: default APFS Data partition on macOS) attempt to rename a file with only a case-change, ex: rename A.txt to a.txt.

Expected result: The file is renamed, ex: the same result as mv A.txt a.txt.

Observed result: Renaming fails, outputs: error: the output file 'a.txt' already exists, use --force to overwrite it

This can be worked around by using --force (as the error message suggests), but using --force means a different file being renamed in the same batch may overwrite an existing file unintentionally. Ideally, on case-insensitive filesystems, the above error case would not trigger if you are just changing the case of a file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions