The Pirates have agreed to sign left-hander Erik Bedard to a $4.5 million deal. Bedard, 32, is coming off his healthiest season since 2007.