anchor.diff:  then
     platform="mac_os_x"
     # Matching the tab-space with sed is error-prone
  -  platform_version=$(sw_vers | awk '/^ProductVersion:/ { print $2 }')
  -
  -  major_version=$(echo $platform_version | cut -d. -f1,2)
  +  platform_version=`sw_vers | awk '/^ProductVersion:/ { print $2 }'`
  +
  +  major_version=`echo $platform_version | cut -d. -f1,2`
     case $major_version in
       "10.6") platform_version="10.6" ;;
       "10.7"|"10.8"|"10.9") platform_version="10.7" ;;
  
positive.code: 
  # Mangle $platform_version to pull the correct build
  # for various platforms
  major_version=$(echo $platform_version | cut -d. -f1)
  case $platform in
    "el")
      case $major_version in
  
negative.code: echo "Downloading Chef $version for ${platform}..."
  
  url="<%= locals[:download_url] %>?v=${version}&prerelease=${prerelease}&p=${platform}&pv=${platform_version}&m=${machine}"
  
  if [ "x$TMPDIR" = "x" ]; then
    tmp=$TMPDIR
  else
    tmp="/tmp"
  fi
  
  # secure-ish temp dir creation without having mktemp available (DDoS-able but not expliotable)
  tmp_dir="$tmp/install.sh.$$"
  (umask 077 && mkdir $tmp_dir) || exit 1
  
  if exists wget;
  then
  