6916986: handle spaces in langtools launcher path
authorjjg
Thu, 14 Jan 2010 17:23:53 -0800
changeset 4706 9dc1a9745cf3
parent 4705 7fac532dc6fa
child 4707 af180594b78e
6916986: handle spaces in langtools launcher path Reviewed-by: darcy, jjg Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
langtools/src/share/bin/launcher.sh-template
--- a/langtools/src/share/bin/launcher.sh-template	Thu Jan 14 17:18:30 2010 -0800
+++ b/langtools/src/share/bin/launcher.sh-template	Thu Jan 14 17:23:53 2010 -0800
@@ -38,7 +38,7 @@
 # dependent jar files for additional dependencies.
 
 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then
-   cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF |
+   cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF |
        grep "Class-Path:" |
        sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'`
    bcp="$mylib/#PROGRAM#.jar":$cp