bash-completion/0076-ssh-fix-suboption-completion-with-combined-o.patch

26 lines
779 B
Diff
Raw Normal View History

2019-09-30 10:32:16 -04:00
From 8d2c976c11e379f28430f1ae15be3764755dcffb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Thu, 25 Apr 2019 23:19:28 +0300
Subject: [PATCH 076/156] ssh: fix suboption completion with combined -*o
---
completions/ssh | 2 +-
1 files changed, 1 insertions(+), 1 deletion(-)
diff --git a/completions/ssh b/completions/ssh
index 7bfae90..df2f865 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -168,7 +168,7 @@ _ssh_suboption_check()
{
# Get prev and cur words without splitting on =
local cureq=`_get_cword :=` preveq=`_get_pword :=`
- if [[ $cureq == *=* && $preveq == -o ]]; then
+ if [[ $cureq == *=* && $preveq == -*o ]]; then
_ssh_suboption $cureq "$1"
return $?
fi
--
1.8.3.1