about summary refs log tree commit diff
path: root/Completion/Unix/Type/_canonical_paths
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/Type/_canonical_paths
parente54578ff74754b70e230106d292eb645f61176f1 (diff)
downloadzsh-485cbbb6cc6ac9d7c13a8268b3574829026f3797.tar.gz
zsh-485cbbb6cc6ac9d7c13a8268b3574829026f3797.tar.xz
zsh-485cbbb6cc6ac9d7c13a8268b3574829026f3797.zip
37972: Redirect stderr to /dev/null in cases where ${~param} might generate errors
Diffstat (limited to 'Completion/Unix/Type/_canonical_paths')
-rw-r--r--Completion/Unix/Type/_canonical_paths2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_canonical_paths b/Completion/Unix/Type/_canonical_paths
index d23b913ef..e4a725b2b 100644
--- a/Completion/Unix/Type/_canonical_paths
+++ b/Completion/Unix/Type/_canonical_paths
@@ -61,7 +61,7 @@ _canonical_paths_get_canonical_path() {
 _canonical_paths_add_paths () {
   local origpref=$1 expref rltrim curpref canpref subdir
   [[ $2 != add ]] && matches=()
-  expref=${~origpref}
+  expref=${~origpref} 2>/dev/null
   [[ $origpref == (|*/). ]] && rltrim=.
   curpref=${${expref%$rltrim}:-./}
   if zstat $curpref >&/dev/null; then