From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: _mount, _fusermount: fix quoting
Date: Tue, 6 Dec 2016 21:07:48 +0100 [thread overview]
Message-ID: <20161206200748.3644-1-mikachu@gmail.com> (raw)
for paths with spaces, umount completion was broken in 39070, fusermount
probably never worked
---
Completion/Linux/Command/_fusermount | 2 +-
Completion/Unix/Command/_mount | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Completion/Linux/Command/_fusermount b/Completion/Linux/Command/_fusermount
index d3d1647fa2..02cb57237e 100644
--- a/Completion/Linux/Command/_fusermount
+++ b/Completion/Linux/Command/_fusermount
@@ -20,7 +20,7 @@ case "$state" in
_files -/
else
mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *})
- _canonical_paths mounted 'mounted filesystem' $mtpts
+ _canonical_paths mounted 'mounted filesystem' "${(@g::)mtpts}"
fi
;;
esac
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index e2c3cfdad1..7c5605016e 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -959,9 +959,9 @@ udevordir)
esac
local MATCH MBEGIN MEND
- mp_tmp=("${(@qg::)mp_tmp}")
- dpath_tmp=( "${(@Mqg::)dev_tmp:#/*}" )
- dev_tmp=( "${(@qg::)dev_tmp:#/*}" )
+ mp_tmp=("${(@g::)mp_tmp}")
+ dpath_tmp=( "${(@Mg::)dev_tmp:#/*}" )
+ dev_tmp=( "${(@g::)dev_tmp:#/*}" )
_alternative \
'device-labels:device label:compadd -a dev_tmp' \
--
2.8.2
reply other threads:[~2016-12-06 20:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161206200748.3644-1-mikachu@gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).