aee9e603b42192d787ceaa7be3e0a55986ce3f46

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

init: reapply hack for invalid ZSH_COMPDUMP filenames (b8761985)

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index a60d2595688ca919f2e04d528deb81139e44782d..4025f002588b148047720dab2c8d843f16094e65 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -85,7 +85,9 @@ fi
 6 
 7 # Append zcompdump metadata if missing
 8 if (( $zcompdump_refresh )); then
 9-  cat >>| "$ZSH_COMPDUMP" <<EOF
10+  # Use `tee` in case the $ZSH_COMPDUMP filename is invalid, to silence the error
11+  # See https://github.com/ohmyzsh/ohmyzsh/commit/dd1a7269#commitcomment-39003489
12+  tee -a "$ZSH_COMPDUMP" &>/dev/null <<EOF
13 
14 $zcompdump_revision
15 $zcompdump_fpath