-
Notifications
You must be signed in to change notification settings - Fork 20
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
[Bug report] Cannot programmatically delete abbreviations containing certain characters #118
Comments
Thanks for the report! I'm able to replicate this. Added breaking tests in the new branch - $ abbr a^='echo "Do something"'
+ $ abbr a='echo "Do something"' You'll need to manually delete the |
^
)
Thanks for the quick response ❤️ This also happens with the exclamation mark. I am migrating from Fish to Zsh, and these are the abbreviations that I have set up from Fish. If at all possible, it would be ideal if these could be supported so I don't have to retrain my dumb brain 😆 Thanks for updating the title. I got confused by the output of abbr and thought |
I just discovered something interesting: If I add the following abbreviation:
It ends up in the user file as:
Which doesn't expand properly in the shell. But if I edit the user file to remove the backslash:
Then it works as expected. But if I add another abbreviation via the |
I hear that! Will look into the caret. But heads up that it'll be at least a few days before I have time to investigate, maybe longer.
Good find! I can replicate. Updating the title and adding a failing test
Expected, that's because the full file is rewritten.
No worries! I don't feel users should have to use or know jargon. |
^
)^
) or exclamation point (!
)
^
) or exclamation point (!
)
Abbreviations with quotation marks also can't be deleted.
Looks relevant https://unix.stackexchange.com/a/626529/248959 |
add failing tests for erasure limitations [#118]
Is there an existing issue for this?
Update the issue title
Expected Behavior
The abbreviation should be deleted.
Actual Behavior
zsh-abbr claims the abbreviation was deleted, but it is not.
Steps To Reproduce
$ abbr e a^ Erased regular user abbreviation `a^`
Environment
Installation method
Homebrew
Installation method details
Homebrew 4.3.0-20-g1f603d3
Anything else?
No response
The text was updated successfully, but these errors were encountered: