Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2006 08:59:56 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Stevan Tiefert <stevan-tiefert@t-online.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: acrobatviewer
Message-ID:  <20061220081028.T50583@wonkity.com>
In-Reply-To: <20061219214345.E49015@wonkity.com>
References:  <20061219214345.E49015@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20061220081028.T50583>