-
Notifications
You must be signed in to change notification settings - Fork 329
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
Renaming file by just capitalizing a letter #343
Comments
I cannot reproduce this. What is your |
I have not set it, so it's the default one. |
I got same problem. What's worse, the renamed file will disappear. |
what shell and terminal are you using? I still cannot reproduce it |
I cannot reproduce it too. |
Yes, I'm using macOS. The problem is that I cannot find any log (under |
I had a similar situation but get fixed.check this issue #253 |
@eggeek I don't know anything about go, but I digged around this points in the code: eval.go and nav.go; you can see from nav.go that there's a function called os.Rename imported from the package
Anyways, the function then seems to call yet another Rename function, this time from syscall: on an AMD64 architecture, it should be the one in here at line 1297. I still have no idea what causes the error nor the file disappearance, but hopefully this can point you in a Darwin-oriented debugging of the issue. |
We fixed the older issue by simply checking if the new name is the same as old in a case-sensitive way which apparently fails for case-insensitive file systems. I'm not sure what would be the easiest way to fix this without adding some platform dependent code. @n0ibe This is an important issue we should fix as soon as possible. Thanks for reporting. |
I have pushed a fix for this and everything should be working fine now. Closing this issue now. |
Renaming a file by just capitalizing one or more of its letters causes an error. For ex if I try to rename
test
toTest
, I get the following errorThe text was updated successfully, but these errors were encountered: