KEY POINTS
  • Amazon announced it was buying Whole Foods for $13.7 billion, or $42 a share.
  • The consumer staples sector dropped 1 percent, capping gains on the S&P, which closed flat for the session, but managed a weekly gain.
  • Wal-Mart shares fell more than 4 percent, but the Dow posted a record close.

The S&P 500 ended marginally higher for the week on Friday following a deal that ignited a sell-off among big retail and grocery companies.

Amazon announced it was buying Whole Foods for $13.7 billion, or $42 a share, sending their shares higher by 2.4 percent and 29 percent, respectively.