On Tue, 19 Dec 2006, Warren Block wrote:

[fixing screen wrap problem]

  java -cp acrobat.jar com.adobe.acrobat.Viewer

  Exception in thread "main" java.lang.NoClassDefFoundError: 
com/apple/mrj/MRJAboutHandler

It doesn't fix that, but here's a patch to fix, or at least start to fix, the most obvious problems in the AcrobatViewer shell script:

--- AcrobatViewer.old   Wed Dec 20 08:12:16 2006
+++ AcrobatViewer       Wed Dec 20 08:21:58 2006
@@ -119,7 +119,7 @@
 do
        #lsstring=`ls -dgon $currname`
        lsstring=`ls -l $currname`
-       islink="`expr "$lsstring" : ".*[\>]\(.*\)"`"
+       islink=`expr "\"$lsstring\"" : "\".*[>]\(.*\)\""`
        if [ ${islink:-""} = "" -o ${islink:-"0"} = "0" ]
        then
                linked=false
@@ -257,7 +257,7 @@
        then
                finished=true
        else
-               testclp=`expr "$thisclp" : "\([/]\)"`
+               testclp=`expr "\"$thisclp\"" : "\([/]\)"`
                if [ "${testclp:-""}" = "" -o "${testclp:-"0"}" = "0" ]
                then
                        absclp=$absclp$here/$thisclp:
@@ -610,7 +610,7 @@
         #
        linkDir=`dirname $actvm_remaining`
        minusLoutput=`ls -l $actvm_remaining`
-       minusLoutput=`expr "$minusLoutput" : ".*[\>] \(.*\)"`
+       minusLoutput=`expr "\"$minusLoutput\"" : ".*[\>] \(.*\)"`
        while [ "$minusLoutput" != "" -a "$minusLoutput" != 0 ]
        do
                if [ `expr "$minusLoutput" : "^/"` = 0 ]; then

-Warren Block * Rapid City, South Dakota USA
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to