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

Bug#64177: tetex-bin: xdvi does not accept command-line options



On Wed, 17 May 2000, Christoph Martin wrote:

> Denis Barbier writes:
>  > Package: tetex-bin
>  > Version: 1.0.6-6
>  > Severity: normal
>  > 
>  > We use a modified version of the xdvi script to display compressed DVI
>  > files. Unfortunately this script is broken in that command-line options
>  > are unavailable.
>  > 
>  > Solution 1: as texdoc can display compressed files, we may restore
>  >   original xdvi script.
>  > 
>  > Solution 2: replace the line
>  >       filename=${1+"$@"}
>  >   so that filename is set to the last argument and not the first one.
>  >   If this solution is retained, please fix #62813 too.
>  > 
> 
> I think we have to at least fix this one for potato.
> 
> I am not shure if we should go back to the original xdvi script (which
> is not able to display .gz files) or try to fix our patch.

Hi Christoph,

i prefer first solution, but solution 2 is fine if you are sure not to
add new bugs.
Adding something like (not tested)
  case "$@" in
     *.gz | *.bz2 )
            echo "xdvi does not display compressed files, try with texdoc." 1>&2
            exit 1 ;;
  esac
in the script is sufficient to help users finding right command.

Denis




Reply to: