summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2014-09-01 03:53:47 -0400
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-09-01 20:00:47 +0100
commit7c7f00e6b1b0b2788eed535a9bfb6d42ac07b24a (patch)
tree4439d18f6fb4b8024e6c9679945dc448aad8b323 /Completion
parent4d0d6e8bed8e3583aaaaf1b34c85209031c95bbb (diff)
downloadzsh-7c7f00e6b1b0b2788eed535a9bfb6d42ac07b24a.tar.gz
zsh-7c7f00e6b1b0b2788eed535a9bfb6d42ac07b24a.tar.xz
zsh-7c7f00e6b1b0b2788eed535a9bfb6d42ac07b24a.zip
33081: suppress unnecessary error message
Diffstat (limited to 'Completion')
-rwxr-xr-xCompletion/Unix/Type/_mime_types4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_mime_types b/Completion/Unix/Type/_mime_types
index b8ed889b8..18a332e09 100755
--- a/Completion/Unix/Type/_mime_types
+++ b/Completion/Unix/Type/_mime_types
@@ -33,10 +33,10 @@ if [[ $PREFIX = (#b)([^/]##)/* ]]; then
   compset -p $(( ${#maintype} + 1 ))
   _wanted mime-subtypes expl 'MIME subtype' \
       compadd -- $(sed -ne "s%^\(type=\|\)${maintype}/\([^ 	]*\).*$%\2%p" \
-      $type_files)
+      $type_files 2>/dev/null)
 else
   # Search for main type.
   _wanted mime-types expl 'MIME type' \
     compadd -S/ -- $(sed -ne "s/^type=//" \
-      -e "s%^\(${PREFIX:-[a-z]}[^=\"]*\)/.*$%\1%p" $type_files)
+      -e "s%^\(${PREFIX:-[a-z]}[^=\"]*\)/.*$%\1%p" $type_files 2>/dev/null)
 fi