Skip to content

abbr -e shouldn't error on unknown #7376

@IlanCosman

Description

@IlanCosman
~ ··············································································
❯ set -e blah                                                                   

~ ·········································································· ✘ 4
❯ abbr -e blah                                                                  
abbr --erase: No abbreviation named blah

~ ·········································································· ✘ 4
❯  

Why should abbr -e error on an unknown while set -e (and functions -e, though this has better reason) does not? Granted, the use cases are different. abbr is primarily used from the command line while set is primarily used in functions/scripts. But as stated in the the holy texts—the design docs—uniformity of language is to be praised.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions