Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _mount, _fusermount: fix quoting
- X-seq: zsh-workers 40107
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: _mount, _fusermount: fix quoting
- Date: Tue, 6 Dec 2016 21:07:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=gDjd/MrEBylTC9lpCNNVz2CNgQso4OA1i++DDT4uS4A=; b=uSrBSUE2vsKCwltBIvoRSMVk1K8f019mVW83F4wLiUhGhZZJL5IgzSPgxbKsthYdss I45r7KTr4zltFbkXXtwGxc+08jls7q9ivcPyT4TdKqmgsQ3D2RbujoaoHwdlVoSIhSyP eNlmkqyKwkIYj3litWNqxQW1eIItg/kYZy3fsHt+UiqSuG3PMw62HheylRj0LM/F0YFr p50sFIJD6L9c4UDZQTJJNAeaA1pqfjMGHw36kCVPnEkvoz/t9rYmPVUHDJQjm+ut9KF9 yy+bhWe0x9U6dU7U2ZIEYdv7qjCIr01UVla/eAHcrM+ToPVaHKidJnknePrRvQQ5U4HN NxnQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author