Skip to content

Commit 01cfc44

Browse files
committed
refactor(ssh-add): use _comp_compgen_help
We also remove the backslash of '-\?' within this patch. The backslash was introduced in commit 60b8fab, which seems to have tried to work around the failglob failure. Because we now directly specify the arguments to _comp_compgen_help so that we do not have to evaluate unquoted $2, we do not need to add the backslash anymore. Note that the backslash added to ssh-keygen in 60b8fab was removed in commit 4dc0016 where _parse_help was switched to _parse_usage. References: 60b8fab 4dc0016
1 parent fbe62ba commit 01cfc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ssh-add

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ _comp_cmd_ssh_add()
2424
esac
2525

2626
if [[ $cur == -* ]]; then
27-
COMPREPLY=($(compgen -W '$(_parse_help "$1" "-\?")' -- "$cur"))
27+
_comp_compgen_help -- '-?'
2828
return
2929
fi
3030

0 commit comments

Comments
 (0)