Bug#64177: tetex-bin: xdvi does not accept command-line options
> 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.
But you must use "$*" here and not "$@". I'm not sure what "$@" would
do if there were more than one argument; I guess it would break (as
"$@" would expand into as many words as there are arguments), but "$*"
would be OK, as it would only be one argument.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: