diff --git a/share/functions/__fish_print_cmd_args_without_options.fish b/share/functions/__fish_print_cmd_args_without_options.fish index dadabc2a8..b38c224b1 100644 --- a/share/functions/__fish_print_cmd_args_without_options.fish +++ b/share/functions/__fish_print_cmd_args_without_options.fish @@ -1,3 +1,3 @@ function __fish_print_cmd_args_without_options - __fish_print_cmd_args | grep '^[^-]' + __fish_print_cmd_args | string match -re '^[^-]' end