From 9933e0b31b32dfe72bd9cbf34b0cbe7eb6770fe3 Mon Sep 17 00:00:00 2001 From: Yvan Janssens Date: Wed, 25 Sep 2019 23:50:24 +0100 Subject: [PATCH] Fixes a bug where PATH variables were not quoted. PATH variables weren't quoted properly, which caused the build scripts to fail when e.g. PATH contains a space. This typically does not occur on Linux, however, WSL tends to export Windows environment variables as well, introducing spaces. This PR fixes this issue. --- cmnvars.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmnvars.sh b/cmnvars.sh index ba08e5ca3b..f7753def66 100755 --- a/cmnvars.sh +++ b/cmnvars.sh @@ -28,11 +28,11 @@ export OWDISTRDIR=$OWROOT/distrib # Set environment variables # Set up default path information variable if [ -z "$OWDEFPATH" ]; then - export OWDEFPATH=$PATH: + export OWDEFPATH="$PATH": if [ -n "$INCLUDE" ]; then export OWDEFINCLUDE=$INCLUDE; fi if [ -n "$WATCOM" ]; then export OWDEFWATCOM=$WATCOM; fi fi -export PATH=$OWBINDIR:$OWROOT/build:$OWDEFPATH +export PATH="$OWBINDIR:$OWROOT/build:$OWDEFPATH" if [ -n "$OWDEFINCLUDE" ]; then export INCLUDE=$OWDEFINCLUDE; fi if [ -n "$OWDEFWATCOM" ]; then export WATCOM=$OWDEFWATCOM; fi