Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS sometimes filenames are left with capital letter(s) #1

Open
marekkowalczyk opened this issue Oct 22, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@marekkowalczyk
Copy link
Owner

macOS filesystem is (typically) case-insensitive but case-preserving: it treats Filename.txt and filename.txt as identical.

Consequently, mv -nv "$oname" "$nname" in the san.sh script fails to rename Filename.txt to filename.txt.

A possible solution could be getting rid of the -n flag in mv -nv. But this risks accidentally overwriting files, as file_name.txt and file name.txt are both transformed to file-name.txt, resulting in the loss of one of the files.

@marekkowalczyk marekkowalczyk added the bug Something isn't working label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant