[Vm-dev] [commit][3609] Fix bug in the squeak start script when running a 64-bit image with a startup script on the command line .

commits at squeakvm.org commits at squeakvm.org
Tue Feb 16 01:43:13 UTC 2016


Revision: 3609
Author:   lewis
Date:     2016-02-15 17:43:13 -0800 (Mon, 15 Feb 2016)
Log Message:
-----------
Fix bug in the squeak start script when running a 64-bit image with a startup script on the command line. If a start script was specified on the command line after the image name, the squeak script picked that as the image name, and ended up selecting the wrong VM for running the image.

Modified Paths:
--------------
    trunk/platforms/unix/cmake/squeak.in

Modified: trunk/platforms/unix/cmake/squeak.in
===================================================================
--- trunk/platforms/unix/cmake/squeak.in	2016-02-16 01:40:45 UTC (rev 3608)
+++ trunk/platforms/unix/cmake/squeak.in	2016-02-16 01:43:13 UTC (rev 3609)
@@ -56,7 +56,7 @@
 	    -vm)            shift; case "$1" in sound*) useoss="false"; esac;;
             -image-info)    info="true";;
 	    --)		    break;;
-	    *)		    if test -f "$1.image" -o -f "$1"; then image="$1"; fi;;
+	    *)		    if test ! "$image" -a \( -f "$1.image" -o -f "$1" \); then image="$1"; fi;;
 	esac
 	shift
     done



More information about the Vm-dev mailing list