I bet many of us do this due to small differences between BSD and GNU coreutils. One that always gets me is:
sed -i '' 's/foo/bar/g' # BSD sed
sed -i 's/foo/bar/g' # GNU sed