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.
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.txttoa.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 itThis can be worked around by using
--force(as the error message suggests), but using--forcemeans 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.