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

Bug#173422: marked as done (xdvi: sh wrapper and long options)



Your message dated Tue, 17 Dec 2002 19:30:06 +0000
with message-id <20021217193006.GA2766@polya>
and subject line Bug#173422: xdvi: sh wrapper and long options
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Dec 2002 10:37:16 +0000
>From debdev@tonelli.sns.it Tue Dec 17 04:37:15 2002
Return-path: <debdev@tonelli.sns.it>
Received: from mail.sns.it (sns.it) [192.84.155.4] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18OF67-0003pQ-00; Tue, 17 Dec 2002 04:37:12 -0600
Received: from tonelli.sns.it ([192.84.155.215] verified)
  by sns.it (CommuniGate Pro SMTP 3.5.9)
  with ESMTP id 2295158 for submit@bugs.debian.org; Tue, 17 Dec 2002 11:37:20 +0100
Received: by tonelli.sns.it (Postfix, from userid 1013)
	id 993B230B4F; Tue, 17 Dec 2002 11:37:09 +0100 (CET)
Date: Tue, 17 Dec 2002 11:37:09 +0100
From: Andrea Mennucc <debdev@Tonelli.sns.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xdvi: sh wrapper and long options
Message-ID: <[🔎] 20021217103709.GA29424@Tonelli.sns.it>
Reply-To: mennucc1@debian.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL"
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
X-Reportbug-Version: 1.50
Mail-Followup-To: mennucc1@debian.org
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.9 required=5.0
	tests=SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 


--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: tetex-bin
Version: 1.0.7+20011202-7.1
Severity: normal

hi

$ xdvi -editor 'xdvi-emacs-editor +%l %f' file.dvi

fails because the shell wrapper does not deal correctly  with 
parameters that have spaces into them

a.

btw: if you want to see it, , I attach xdvi-emacs-editor

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux tonelli 2.4.19-k7 #1 Sun Oct 6 20:29:56 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages tetex-bin depends on:
ii  debianutils           1.16               Miscellaneous utilities specific t
ii  dpkg                  1.9.21             Package maintenance system for Deb
ii  ed                    0.2-19             The classic unix line editor
ii  libc6                 2.2.5-14.3         GNU C Library: Shared libraries an
ii  libkpathsea3          1.0.7+20011202-7.1 shared libkpathsea for teTeX
ii  libpng2               1.0.12-3.woody.2   PNG library - runtime
ii  libstdc++2.10-glibc2. 1:2.95.4-11woody1  The GNU stdc++ library
ii  libtiff3g             3.5.5-6            Tag Image File Format library
ii  libxaw7               4.1.0-16           X Athena widget set library
ii  tetex-base            1.0.2+20011202-2   basic teTeX library files
ii  xlibs                 4.1.0-16           X Window System client libraries
ii  zlib1g                1:1.1.4-1          compression library - runtime

-- 
Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=xdvi-emacs-editor

#!/bin/sh


ba=`basename $0`

if which $ba > /dev/null 2> /dev/null ; then
 ex="$ba"
else
 ex="$0"
fi

if [ "$1" == "-h" -o "$1" == "--help" -o "$1" == "" ] ; then
cat<<EOF
 $ba
  Copyright A. Mennucci 2002 . License GPL
 Description:
  This script links xdvi and emacs. It is more user-friendly than
  using emacsclient (see the man page of xdvi, where it describes -editor )

  Usage:
   Start emacs and load the gnuserv into it, by issuing 
     <M-x> gnuserv-start <return>
   Start xdvi as follows
EOF
 if grep -iq xdvi.editor /usr/share/texmf/xdvi/XDvi || \
  xrdb -q  | grep -iq xdvi.editor ; then 
  echo "   xdvi -editor $ex  file.dvi"
 elif [ "$BASH" ] ; then
  echo "   XEDITOR='$ex +%l %f' xdvi   file.dvi"
 else
  echo "   xdvi -editor $ex  file.dvi"
 fi
 echo
 echo "   Hit ctrl-right-mouse-button in the xdvi window, and enjoy emacs editing."
exit
fi

debug=''

xwarn () {
  if [ -x /usr/bin/X11/xmessage ] ; then
   /usr/bin/X11/xmessage "$ba: $1"
  else
   echo "$ba: $1" 2>&1
  fi
}


 [ $debug ] && xwarn "args $* "

 linenum="$1"

 filename="$2"


 case "$filename" in
        /*)  ;;
        *) filename=`pwd`/$filename ;;
 esac

 [ $debug ] &&  xwarn " going to file ${filename} line $linenum ..."


if [ ! -w /tmp/gsrvdir`id -u`/gsrv ] ; then
   xwarn 'It seems that you did not start the gnuserv inside emacs.
 You should load it by issuing 
 <M-x> gnuserv-start <return>'
   exit 
fi

if [ -r "$filename" ] ; then
  #gnudoit '(switch-to-buffer "'${filename}'")' &&\

  { gnudoit '(find-file "'${filename}'")' > /dev/null && \
  { gnudoit "(goto-line $linenum)" > /dev/null ; } && \
    { gnudoit "(raise-frame)" > /dev/null ; } ; } || \
  xwarn 'It seems that the gnuserv is malfunctioning (did you restart emacs?).
 You should reload it by issuing 
 <M-x> gnuserv-start <return>'
 
 
else
  xwarn "file $filename unreadable"
  
fi

 #for b in galeon mozilla netscape ; do
  #  #[ -x /usr/bin/$b ] &&   exec /usr/bin/$b "$1"
  #done
 

--vtzGhvizbBRQ85DL--

---------------------------------------
Received: (at 173422-done) by bugs.debian.org; 17 Dec 2002 19:30:12 +0000
>From jdg@polya.uklinux.net Tue Dec 17 13:30:11 2002
Return-path: <jdg@polya.uklinux.net>
Received: from mail2.uklinux.net [80.84.72.32] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18ONPu-0003jh-00; Tue, 17 Dec 2002 13:30:11 -0600
Received: from polya (bts-0577.dialup.zetnet.co.uk [194.247.50.65])
	by mail2.uklinux.net (Postfix) with ESMTP id 165B4409FA7
	for <173422-done@bugs.debian.org>; Tue, 17 Dec 2002 19:30:09 +0000 (UTC)
Received: from jdg by polya with local (Exim 3.36 #1 (Debian))
	id 18ONPr-0000l9-00; Tue, 17 Dec 2002 19:30:07 +0000
Date: Tue, 17 Dec 2002 19:30:06 +0000
From: Julian Gilbey <jdg@polya.uklinux.net>
To: 173422-done@bugs.debian.org
Subject: Re: Bug#173422: xdvi: sh wrapper and long options
Message-ID: <20021217193006.GA2766@polya>
References: <[🔎] 20021217103709.GA29424@Tonelli.sns.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 20021217103709.GA29424@Tonelli.sns.it>
User-Agent: Mutt/1.4i
Delivered-To: 173422-done@bugs.debian.org
X-Spam-Status: No, hits=-15.9 required=5.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      SIGNATURE_SHORT_SPARSE,SPAM_PHRASE_03_05,USER_AGENT,
	      USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 

On Tue, Dec 17, 2002 at 11:37:09AM +0100, Andrea Mennucc wrote:
> Package: tetex-bin
> Version: 1.0.7+20011202-7.1
> Severity: normal
> 
> hi
> 
> $ xdvi -editor 'xdvi-emacs-editor +%l %f' file.dvi
> 
> fails because the shell wrapper does not deal correctly  with 
> parameters that have spaces into them

Thank you for your report.  This has been fixed in the current
unstable version of the tetex-bin package.

   Julian

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

        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: