-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Issue with rm command in omb when autocompleting wrong capitalization #623
Comments
This is related to the following setting in OMB's oh-my-bash/templates/bashrc.osh-template Line 18 in e712342
This variable is referenced here to set up Bash's option Lines 27 to 33 in e712342
Your report seems to suggest that turning The setting In the upstream OMZ, this variable is used to set the behavior of the completion. It is not used to control the behavior related to the pathname expansions. The current behavior in OMB was introduced in #399. Originally, The line was added by @mrzool in the following commit in @jjmcdn @mrzool Do you have any thoughts on the default setting for the Bash option |
I mean it is fine at auto-completing case-sensitive stuff, however it should not override the command behavior based on that, it should be limited to just Autocomplete. Such as:
|
As described above, the story is that even before the setting for the completion started to override the behavior for the pathname expansions in #399, I kind of agree with you that
What you see is |
@mrzool Sorry for bothering you after eight years, but if you have time, do you remember the background of mrzool/bash-sensible@e2cabcb in bash-sensible? |
Hey @akinomyoga, sorry for the delay. That’s a really good question. I tried to recall and checked my notes, but I couldn’t find anything. I also checked my personal configuration and noticed I’m not using that option on my machine. If I ever had a reason to add it, that reason is long forgotten by now, and I’m happy to remove it before anyone risks losing data. Interestingly, I don’t think it’s ever been reported. |
@mrzool Thank you for taking the time to check them and reply to us! I understand that it would often be difficult to recall the background of the options after eight years. Since the native assumption by the users that the glob matching would be case sensitive would cause an actual problem as reported here, if there isn't an obvious breakage by turning off |
Background: ohmybash/oh-my-bash#623
@akinomyoga Sounds good. Done now! |
So i had a bunch of temporary files created in capital letters, named:
ABCD.zip
ABCD-arm.zip
ABCD-X86.zip
etc. I also had:
abcd/
abcd-arm/
I tried to delete those zips, so i did
rm -rf ABCD*
while using oh-my-bash, however it also deleted my important folders abcd/ and abcd-arm/I'd be in great trouble if i hadn't committed to git.
Let bash handle the way it normally does so it doesn't happen with someone else.
an example:
The text was updated successfully, but these errors were encountered: