[Vm-dev] [commit] r2204 - realpath properly handles spaces in the path

commits at squeakvm.org commits at squeakvm.org
Thu Apr 29 09:54:24 UTC 2010


Author: piumarta
Date: 2010-04-29 02:54:23 -0700 (Thu, 29 Apr 2010)
New Revision: 2204

Modified:
   trunk/platforms/unix/cmake/squeak.in
Log:
realpath properly handles spaces in the path

Modified: trunk/platforms/unix/cmake/squeak.in
===================================================================
--- trunk/platforms/unix/cmake/squeak.in	2010-04-25 19:53:47 UTC (rev 2203)
+++ trunk/platforms/unix/cmake/squeak.in	2010-04-29 09:54:23 UTC (rev 2204)
@@ -3,7 +3,7 @@
 # Launch squeakvm from the command line or a menu script, with a good
 # plugin path, text encodings and pulseaudio kludge
 # 
-# Last edited: 2010-04-10 20:04:32 by piumarta on ubuntu
+# Last edited: 2010-04-29 02:52:25 by piumarta on margaux1
 
 PATH=/usr/bin:/bin
 
@@ -19,7 +19,9 @@
     if test -d "${path}"; then
 	(cd "${path}" && pwd -P)
     else
-	(cd `dirname "${path}"` && echo "`pwd -P`/`basename "${path}"`")
+	dir=`dirname "${path}"`
+	base=`basename "${path}"`
+	(cd "${dir}" && echo "`pwd -P`/${base}")
     fi
 }
 



More information about the Vm-dev mailing list