[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#117528: xdvi no longer understands quotes in options



On Tue, Dec 11, 2001 at 12:09:58PM +0100, Meik Hellmund wrote:
> Julian Gilbey <J.D.Gilbey@qmw.ac.uk> writes:
> > 
> > I suggest the following hack using IFS to work around it.  It will

Here's the diff against the xdvi in tetex-bin, version
1.0.7+20001218-7:

--- /usr/bin/xdvi	Thu Nov 22 14:23:54 2001
+++ /tmp/xdvi.new	Wed Dec 12 10:31:51 2001
@@ -28,7 +28,8 @@
   1:-help|1:-version)
     NAMEOPT=;;
   *)
-    NAMEOPT='-name xdvi';;
+    NAMEOPT='-name
+xdvi';;
 esac
 
 XDVIINPUTS="$XDVIINPUTS":'$TEXMF/{xdvi,web2c}'; export XDVIINPUTS
@@ -48,7 +49,8 @@
 #exec xdvi.bin $NAMEOPT ${1+"$@"}
 for i
 do
-    args="$args $lastarg"
+    args="$args
+$lastarg"
     lastarg=$i
 done
 filename=$lastarg
@@ -71,5 +73,11 @@
     filename=$tempfile
 fi
 
-xdvi.bin $NAMEOPT $args $filename || exit 1
+args="$NAMEOPT
+$args
+$filename"
+
+IFS='
+'
+xdvi.bin $args || exit 1
 exit 0


Tested and works.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

     Julian Gilbey, Dept of Maths,             Debian GNU/Linux Developer
      Queen Mary, Univ. of London         see http://people.debian.org/~jdg/
   http://www.maths.qmul.ac.uk/~jdg/           or http://www.debian.org/
        Visit http://www.thehungersite.com/ to help feed the hungry
                 Also: http://www.helpthehungry.org/



Reply to: