Permalink
Browse files

more work on sed compatibility for zsh

  • Loading branch information...
1 parent 3d1610b commit f759cce505e0fc8a681f6510e58aaa022c786ee8 @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 -Ei "/zsh\/(pcre|regex)/ { s/link=no/link=static/ ; s/auto=yes/auto=no/ }" config.modules
+ sed -E -i "" "/zsh\/(pcre|regex)/ { s/link=no/link=static/ ; s/auto=yes/auto=no/ ; }" config.modules
else
- sed -Ei "/zsh\/(pcre|regex)/ { s/link=no/link=dynamic/ ; s/auto=yes/auto=no/ }" config.modules
+ sed -E -i "" "/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 f759cce

Please sign in to comment.