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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

commits-3
 
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
 }
 

Reply | Threaded
Open this post in threaded view
|

Re: [commit] r2204 - realpath properly handles spaces in the path

Bert Freudenberg
 
On 29.04.2010, at 11:54, [hidden email] wrote:

>
>
> 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

What took you so long? A full *nine* minutes from reporting to check-in?

;)

- Bert -