Github user srowen commented on the pull request: https://github.com/apache/spark/pull/6832#issuecomment-119377246 I thought that would be fine but, yeah it changes the 2.11 in the 2.11 profile to 2.10 on the way back, which is wrong. I fished around a little more and this seems to work as desired on OS X: ``` sed -e '1,/<scala\.binary\.version>2.10</s/<scala\.binary\.version>2.10</<scala.binary.version>2.11</' ... ``` That is, use 1 instead of 0, and repeat the pattern. See http://www.linuxtopia.org/online_books/linux_tool_guides/the_sed_faq/sedfaq4_004.html and http://stackoverflow.com/questions/148451/how-to-use-sed-to-replace-only-the-first-occurrence-in-a-file Do you have GNU sed handy to confirm if that's portable? the page above suggests it is, since this won't occur on the first line.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org