From d251388f5374af268efd7f48f58e2ac191457654 Mon Sep 17 00:00:00 2001 From: Tim Harper Date: Tue, 26 Sep 2017 15:30:03 -0600 Subject: [PATCH] OS X compatible line-ending stripping BSD sed interprets sed 's/\r//' as "replace the literal letter r". A more compatible approach delegates the interpretation of this sequence to bash. Fixes #186 --- src/universal/bin/sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt b/src/universal/bin/sbt index 70dfc91..9070dab 100755 --- a/src/universal/bin/sbt +++ b/src/universal/bin/sbt @@ -137,7 +137,7 @@ process_my_args () { loadConfigFile() { # Make sure the last line is read even if it doesn't have a terminating \n - cat "$1" | sed '/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do + cat "$1" | sed $'/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do eval echo $line done }