-
Notifications
You must be signed in to change notification settings - Fork 812
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
mv change case of file extension causes: 'test.txt' and 'test.TXT' are the same file #4767
Comments
I wanted to say this was correct behavior but I too tested on a Fedora cloud image and |
Well, the thing is that I some devices produce files with uppercase endings like .JPG, .PNG, etc. and some software uses lowercase endings by default and I wrote a bash script for renaming them all to uppercase, because that is what I need them to be (i don't care if upper or lower case, just consistent). mv is used here for renaming and I don't have two files which are different in case, I just want to change the case of the file extension. This works in Windows Explorer and on other operating systems so why should it not work in WSL? I just tested again and it also works in ~ directory in WSL (OpenSuse), but not in /mnt/c
|
Ah ok, I see what you mean. Yes, just to make them all consistent (I personally prefer lowercase as it's easier to read to me) this should work. Do you have case sensitivity enabled in |
If you want DrvFs to behave case-sensitive you have to supply the case sensitive mount option: https://devblogs.microsoft.com/commandline/improved-per-directory-case-sensitivity-support-in-wsl/ |
Hello,
I have the following issue
Your Windows build number: Microsoft Windows [Version 10.0.17763.914]
What you're doing and what's happening:
mv command cannot be used to rename file extension to upper case. I would expect similar behavior as in Windows Explorer or other tools that i can simply rename a file and change the case of the extension. I tested the same thing under Fedora and there it works without any issues.
The text was updated successfully, but these errors were encountered: