From 751568a632c574d0913085202c7b400f91b2764e Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Thu, 11 Jul 2013 19:19:57 +0200 Subject: [PATCH] Fix strange results when using a zsh --HG-- branch : bgschaid/minorAdditionsBranch --- etc/bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/bashrc b/etc/bashrc index 91bc7c220..7b04ffe4d 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -251,8 +251,12 @@ Darwin) # Make sure that binaries use the best features of the used OS-Version # We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7" - v=(`sw_vers -productVersion | sed 's/\./ /g'`) - export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}" + + # this gives strange results with some shells + # v=(`sw_vers -productVersion | sed 's/\./ /g'`) + # export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}" + + export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"` if [ "$compilerInstall" == "System" ] then