diff options
Diffstat (limited to 'completions/ssh')
-rw-r--r-- | completions/ssh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/ssh b/completions/ssh index e30b9153..e62b13fd 100644 --- a/completions/ssh +++ b/completions/ssh @@ -158,7 +158,7 @@ _ssh() # Search COMP_WORDS for '-F configfile' or '-Fconfigfile' argument set -- "${words[@]}" while [ $# -gt 0 ]; do - if [ "${1:0:2}" = -F ]; then + if [[ $1 == -F* ]]; then if [ ${#1} -gt 2 ]; then configfile="$(dequote "${1:2}")" else @@ -221,7 +221,7 @@ _sftp() # Search COMP_WORDS for '-F configfile' argument set -- "${words[@]}" while [ $# -gt 0 ]; do - if [ "${1:0:2}" = -F ]; then + if [[ $1 == -F* ]]; then if [ ${#1} -gt 2 ]; then configfile="$(dequote "${1:2}")" else @@ -351,7 +351,7 @@ _scp() # Search COMP_WORDS for '-F configfile' or '-Fconfigfile' argument set -- "${words[@]}" while [ $# -gt 0 ]; do - if [ "${1:0:2}" = -F ]; then + if [[ $1 == -F* ]]; then if [ ${#1} -gt 2 ]; then configfile="$(dequote "${1:2}")" else |