about summary refs log tree commit diff
path: root/Completion/Unix/Type/_zfs_dataset
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-07-17 12:37:29 +0200
committerOliver Kiddle <opk@zsh.org>2016-07-17 12:37:29 +0200
commit9991707b6bbdfe8940b2098128d85f61a966d758 (patch)
tree7e841073d3546ef999affafdda26fa210ea9a91f /Completion/Unix/Type/_zfs_dataset
parent52f46cca751cc40db978b88dd6379866cad30b15 (diff)
downloadzsh-9991707b6bbdfe8940b2098128d85f61a966d758.tar.gz
zsh-9991707b6bbdfe8940b2098128d85f61a966d758.tar.xz
zsh-9991707b6bbdfe8940b2098128d85f61a966d758.zip
38868: update completions for new options on FreeBSD
Diffstat (limited to 'Completion/Unix/Type/_zfs_dataset')
-rw-r--r--Completion/Unix/Type/_zfs_dataset6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_zfs_dataset b/Completion/Unix/Type/_zfs_dataset
index 5fa3e9e50..6c625e9ec 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 | awk "\$2 != \"-\" {print \$1}")":#no cloned filesystems available} )
+	datasetlist=( ${="$(zfs list -H -o name,origin -t filesystem 2>/dev/null | awk "\$2 != \"-\" {print \$1}")":#no cloned filesystems available} )
 else
-	datasetlist=( ${="$(zfs list -H -o name $typearg)":#no datasets available} )
+	datasetlist=( ${="$(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)":#no mountpoints available} )
+	mlist=( ${="$(zfs list -H -o mountpoint $typearg 2>/dev/null)":#no mountpoints available} )
 	datasetlist=( $datasetlist $mlist )
 	expl_type="$expl_type/mountpoint"
 fi