-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
@olets's maintainer edit: this generalized into several bugs related. Summarizing here.
erase outputs a success message but doesn't actually delete if the abbreviation contains
- a caret (
^) (original report) - a hash symbol (
#) - an exclamation point (
!) * - double quotation marks (
") * - single quotation marks (
')
* Read #118 (comment) for workarounds.
Original report follows…
Is there an existing issue for this?
- I have searched the existing issues
Update the issue title
- I have updated the title
Expected Behavior
The abbreviation should be deleted.
Actual Behavior
zsh-abbr claims the abbreviation was deleted, but it is not.
Steps To Reproduce
- Add the abbreviation:
$ abbr a^='echo "Do something"'
Added the regular user abbreviation `a^`- Run the abbreviation:
$ a^- Notice the abbreviation runs as expected.
$ echo "Do something"
Do something- Delete the abbreviation:
$ abbr e a^
Erased regular user abbreviation `a^`- Try to run the abbreviation
$ a^- Notice that it runs, even those zsh-abbr claimed it was erased.
$ echo "Do something"
Do somethingEnvironment
zsh-abbr version 5.4.1
zsh 5.9 (x86_64-apple-darwin23.0)
OSTYPE darwin23.0Installation method
Homebrew
Installation method details
Homebrew 4.3.0-20-g1f603d3
Anything else?
No response
Metadata
Metadata
Assignees
Labels
Projects
Status
In Progress