mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
fix bug in abbr function
I introduced a bug in the `abbr` function with commit 17dff8c by
referencing the undefined `$cmd` variable. This fixes that.
This commit is contained in:
@@ -3,7 +3,7 @@ function abbr --description "Manage abbreviations using new fish 3.0 scheme."
|
||||
set options $options 'h/help' 'a/add' 'r/rename' 'e/erase' 'l/list' 's/show'
|
||||
set options $options 'g/global' 'U/universal'
|
||||
|
||||
argparse -n $cmd $options -- $argv
|
||||
argparse -n abbr $options -- $argv
|
||||
or return
|
||||
|
||||
if set -q _flag_help
|
||||
|
||||
Reference in New Issue
Block a user