From 831a336c494b55641b4ba2c8bb89a8acda2709f8 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 6 Sep 2016 23:40:55 +0000 Subject: 39171: _libvirt: Apply $opt_args-unescaping. This causes the value of $conn_opt in the code not to have a backslash in front of the colon. --- Completion/Unix/Command/_libvirt | 1 + 1 file changed, 1 insertion(+) (limited to 'Completion/Unix/Command/_libvirt') diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt index 8ddc28102..658e197dc 100644 --- a/Completion/Unix/Command/_libvirt +++ b/Completion/Unix/Command/_libvirt @@ -116,6 +116,7 @@ esac local -a conn_opt if [[ -n ${(v)opt_args[(I)-c|--connect]} ]]; then local uri=${(v)opt_args[(I)-c|--connect]} + uri=${uri//(#m)\\([\\:])/${MATCH[2]}} # opt_args elements are colon-escaped # For the libvirt remote URI syntax, see: # https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Remote_URIs.html [[ -z ${(Q)uri//([[:alnum:]]|+|:|\/|@|-|\.|\?|=)} ]] && \ -- cgit 1.4.1