diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-05-05 12:13:45 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-05-05 12:13:45 +0200 |
commit | ff987384cf721e7e0812636dea8100b485968bb2 (patch) | |
tree | 7e58ff2b3fd762bacb072ca963e20d9eafcca096 /oh-my-zsh.sh | |
parent | dd1a72696f162fd5285a104b5f63970deb66e8b0 (diff) | |
download | zsh-ff987384cf721e7e0812636dea8100b485968bb2.tar.gz zsh-ff987384cf721e7e0812636dea8100b485968bb2.tar.bz2 zsh-ff987384cf721e7e0812636dea8100b485968bb2.zip |
core: fix cmp invocation in BSD systems
BSD cmp doesn't have the option of reading from stdin, so use process
substitution instead.
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 092099325..285caf668 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -68,7 +68,7 @@ zcompdump_metadata="\ " # Delete the zcompdump file if OMZ zcompdump metadata changed -if ! cmp -s <(command grep '^#omz' "$ZSH_COMPDUMP" 2>/dev/null) <<< "$zcompdump_metadata"; then +if ! cmp -s <(command grep '^#omz' "$ZSH_COMPDUMP" 2>/dev/null) <(echo "$zcompdump_metadata"); then command rm -f "$ZSH_COMPDUMP" zcompdump_refresh=1 fi |