diff options
author | Mathias Fredriksson <mafredri@gmail.com> | 2020-07-07 23:07:46 +0300 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2020-07-08 23:46:37 +0200 |
commit | aa60dd320f0878b634384bec251035ed97ec8210 (patch) | |
tree | a371b5374c8c4b89eb57dfeb729f503a5010b98c /Completion | |
parent | 02f62e5d21e09d4936e18147119b1f0c85b93d79 (diff) | |
download | zsh-aa60dd320f0878b634384bec251035ed97ec8210.tar.gz zsh-aa60dd320f0878b634384bec251035ed97ec8210.tar.xz zsh-aa60dd320f0878b634384bec251035ed97ec8210.zip |
github #60: Fix completion for a zfs dataset containing spaces
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_zfs_dataset | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_zfs_dataset b/Completion/Unix/Type/_zfs_dataset index 6bef04e45..63384afc6 100644 --- a/Completion/Unix/Type/_zfs_dataset +++ b/Completion/Unix/Type/_zfs_dataset @@ -58,14 +58,14 @@ if [[ ${#rdst} -gt 0 ]]; then fi if [[ -n $type[(r)clone] ]]; then - datasetlist=( ${="$(zfs list -H -o name,origin -t filesystem 2>/dev/null | awk "\$2 != \"-\" {print \$1}")":#no cloned filesystems available} ) + datasetlist=( ${(f)"$(zfs list -H -o name,origin -t filesystem 2>/dev/null | awk -F $'\t' "\$2 != \"-\" {print \$1}")":#no cloned filesystems available} ) else - datasetlist=( ${="$(zfs list -H -o name $typearg 2>/dev/null)":#no datasets available} ) + datasetlist=( ${(f)"$(zfs list -H -o name $typearg 2>/dev/null)":#no datasets available} ) fi expl_type=${typearg[2,-1]//,/\/} if [[ -n $type[(r)mtpt] ]]; then - mlist=( ${="$(zfs list -H -o mountpoint $typearg 2>/dev/null)":#no mountpoints available} ) + mlist=( ${(f)"$(zfs list -H -o mountpoint $typearg 2>/dev/null)":#no mountpoints available} ) datasetlist=( $datasetlist $mlist ) expl_type="$expl_type/mountpoint" fi |