Permalink
Browse files

increase sed compability for zsh

  • Loading branch information...
1 parent 18235de commit 3d1610b63a1790c41a10bdc8053e2f272bfe9287 @mpapis mpapis committed Apr 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 zsh/shell/functions
View
4 zsh/shell/functions
@@ -10,9 +10,9 @@ zsh_postconfigure()
# Enable pcre & regex to be loaded
if [[ ${static_flag:-0} == 1 || "$LDFLAGS" =~ "static" ]]
then
- sed -ri "/zsh\/(pcre|regex)/ { s/link=no/link=static/ ; s/auto=yes/auto=no/ }" config.modules
+ sed -Ei "/zsh\/(pcre|regex)/ { s/link=no/link=static/ ; s/auto=yes/auto=no/ }" config.modules
else
- sed -ri "/zsh\/(pcre|regex)/ { s/link=no/link=dynamic/ ; s/auto=yes/auto=no/ }" config.modules
+ sed -Ei "/zsh\/(pcre|regex)/ { s/link=no/link=dynamic/ ; s/auto=yes/auto=no/ }" config.modules
fi
grep -E "zsh\/(pcre|regex)" config.modules | __sm.log.debug package -
}

0 comments on commit 3d1610b

Please sign in to comment.