From 7ac8e597dec92cbed74b9608a74d40631f755262 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 00d8ff419..db2a10e54 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -261,8 +261,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