mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
parent
2ab4c10c47
commit
135c5a9746
2 changed files with 0 additions and 2 deletions
|
@ -109,7 +109,6 @@ function __fish_abbr_erase --no-scope-shadowing
|
|||
set -l abbr_var_name _fish_abbr_(string escape --style=var -- $abbr_name)
|
||||
|
||||
if not set -q $abbr_var_name
|
||||
printf ( _ "%s %s: No abbreviation named %s\n" ) abbr --erase $escaped_name >&2
|
||||
set ret 4 # like `set -e doesnt_exist`
|
||||
end
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ abbr | grep __abbr1
|
|||
abbr --erase NOT_AN_ABBR
|
||||
abbr | grep __abbr1
|
||||
# CHECK: abbr -a -U -- __abbr1 'alpha beta gamma'
|
||||
# CHECKERR: abbr --erase: No abbreviation named NOT_AN_ABBR
|
||||
|
||||
# Adding existing __abbr1 should be idempotent
|
||||
abbr __abbr1 alpha beta gamma
|
||||
|
|
Loading…
Reference in a new issue