aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorOndrej Lhotak <olhotak@uwaterloo.ca>2016-05-20 10:40:53 -0400
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2016-05-25 13:40:00 +0200
commite8e6265bae73f9dd85e78426a9142faca163ae06 (patch)
treee54ac005c999db0e70157188f2780161f50910f6 /bin
parent134ad7a6a172fec97dc438dd0aff3766a0f0944a (diff)
downloaddotty-e8e6265bae73f9dd85e78426a9142faca163ae06.tar.gz
dotty-e8e6265bae73f9dd85e78426a9142faca163ae06.tar.bz2
dotty-e8e6265bae73f9dd85e78426a9142faca163ae06.zip
fix newline in DOTTY_ROOT when cd produces output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dotc b/bin/dotc
index f6c1db6c1..c52abc3d4 100755
--- a/bin/dotc
+++ b/bin/dotc
@@ -8,7 +8,7 @@ if [[ "$DOTTY_ROOT" == "" ]]; then
DOTTY_ROOT="$0"
fi
DOTTY_ROOT="`dirname \"$DOTTY_ROOT\"`"
-DOTTY_ROOT="`( cd \"$DOTTY_ROOT\" && pwd )`/.." # absolute
+DOTTY_ROOT="`( cd \"$DOTTY_ROOT\" >& /dev/null && pwd )`/.." # absolute
# Finds in dotty build file a line containing PATTERN
# returns last "" escaped string in this line