@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
* Read #118 (comment) for workarounds.
Original report follows…
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
- Add the abbreviation:
$ abbr a^='echo "Do something"'
Added the regular user abbreviation `a^`
- Run the abbreviation:
- 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
- Notice that it runs, even those zsh-abbr claimed it was erased.
$ echo "Do something"
Do something
Environment
zsh-abbr version 5.4.1
zsh 5.9 (x86_64-apple-darwin23.0)
OSTYPE darwin23.0
Installation method
Homebrew
Installation method details
Homebrew 4.3.0-20-g1f603d3
Anything else?
No response
@olets's maintainer edit: this generalized into several bugs related. Summarizing here.
eraseoutputs a success message but doesn't actually delete if the abbreviation contains^) (original report)#)!) *") *')* Read #118 (comment) for workarounds.
Original report follows…
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