summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-02-14 13:10:06 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-02-14 13:10:06 -0800
commit485cbbb6cc6ac9d7c13a8268b3574829026f3797 (patch)
tree2c4adfb2b4917ff6854136637855b974a1a63269 /Completion/Unix/Command
parente54578ff74754b70e230106d292eb645f61176f1 (diff)
downloadzsh-485cbbb6cc6ac9d7c13a8268b3574829026f3797.tar.gz
zsh-485cbbb6cc6ac9d7c13a8268b3574829026f3797.zip
37972: Redirect stderr to /dev/null in cases where ${~param} might generate errors
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_devtodo2
-rw-r--r--Completion/Unix/Command/_make2
-rw-r--r--Completion/Unix/Command/_ssh2
-rw-r--r--Completion/Unix/Command/_tar2
-rw-r--r--Completion/Unix/Command/_zip2
5 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_devtodo b/Completion/Unix/Command/_devtodo
index 2800f4a31..dbc64f870 100644
--- a/Completion/Unix/Command/_devtodo
+++ b/Completion/Unix/Command/_devtodo
@@ -9,7 +9,7 @@ typeset expl
for ((i=2; i <= $#words; i++)) {
if [[ $words[$i] == '--database' ]]; then
- todo_opts+=(--database ${~words[$((++i))]})
+ todo_opts+=(--database ${~words[$((++i))]}) 2>/dev/null
elif [[ $words[$i] == '--sort' ]]; then
todo_opts+=(--sort ${words[$((++i))]})
fi
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 48befa749..c3f3961c9 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -129,7 +129,7 @@ _make-findBasedir () {
do
if [[ $@[index] == -C ]]
then
- file=${~@[index+1]};
+ file=${~@[index+1]} 2>/dev/null
if [[ -z $file ]]
then
# make returns with an error if an empty arg is given
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index c6ede9efe..1f8f62cac 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -622,7 +622,7 @@ _ssh_hosts () {
${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@" && return
fi
if (( ind = ${words[(I)-F]} )); then
- config=${~words[ind+1]}
+ config=${~words[ind+1]} 2>/dev/null
else
config="$HOME/.ssh/config"
fi
diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar
index 1e99ac013..4a2404873 100644
--- a/Completion/Unix/Command/_tar
+++ b/Completion/Unix/Command/_tar
@@ -79,7 +79,7 @@ else
tf=${~words[tmp+1]}
_tar_cmd="f$_tar_cmd"
fi
-fi
+fi 2>/dev/null
# See if we should use a path prefix. We have to use eval as the dir can
# be any unevaluated thing which appears on the command line, including a
diff --git a/Completion/Unix/Command/_zip b/Completion/Unix/Command/_zip
index 171daf01e..1040fa977 100644
--- a/Completion/Unix/Command/_zip
+++ b/Completion/Unix/Command/_zip
@@ -120,7 +120,7 @@ case $state in
zipfile=$testfile.ZIP
else
return 1
- fi
+ fi 2>/dev/null
if [[ $zipfile != $_zip_cache_name ]]; then
_zip_cache_name="$zipfile"
_zip_cache_list=( ${(f)"$(zipinfo -1 $_zip_cache_name)"} )