From 4334c8672d358b5ef4c4b8772f19aeef2d21c3e2 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Thu, 30 Oct 2014 18:06:25 +0300 Subject: [PATCH] Fixed incorrect sbtopts lines processing It used `for` loop which is known to work incorrectly with spaces. This commit changes it to `while read` loop. This allows more complex options to be specified in sbtopts files. Fixes #80 --- 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 efa1987df..48d1ff90f 100755 --- a/src/universal/bin/sbt +++ b/src/universal/bin/sbt @@ -131,7 +131,7 @@ process_my_args () { } loadConfigFile() { - for line in $(cat "$1" | sed '/^\#/d'); do + cat "$1" | sed '/^\#/d' | while read line; do eval echo $line done }