bin/scilab may fail when path contains spaces. 83/20783/1
Cedric Delamarre [Mon, 4 Feb 2019 11:49:16 +0000 (12:49 +0100)]
  following: https://codereview.scilab.org/#/c/20779/
  start scilab -nw/nwni with space in path of pwd

Change-Id: I2f70ccf5b6568c84a62f5668ce959ee5f1d31ac5

scilab/bin/scilab

index 1668cf0..077d437 100755 (executable)
@@ -176,6 +176,7 @@ detect_type_of_scilab $@
 
 detect_os
 
+
 detect_scilab_path() {
 
     LOCALOLDPWD=$(pwd)
@@ -604,7 +605,7 @@ detect_java_vm() {
 
     # Check if the lib exists
     LIBJAVA="$JRE_HOME/lib/$proc/$JAVA_SHLIB"
-    if test ! -f $LIBJAVA; then
+    if test ! -f "$LIBJAVA"; then
         if test $SCIVERBOSE -ne 0; then
             echo "Cannot find $LIBJAVA"
         fi