problems running Acrobat Reader 5
Alexandre Oliva
aoliva at redhat.com
Thu Nov 13 15:57:56 UTC 2003
On Nov 13, 2003, Ian Pilcher <i.pilcher at comcast.net> wrote:
> Ulrich Drepper wrote:
>> #! /bin/bash
>> export LC_ALL=C
>> exec /opt/Acrobat5/bin/acroread "$@"
> Note that this will cause problems if you specify multiple files on the
> command line. I found the following construct on Google, which seems to
> work with both multiple files and files with spaces in their names (no
> idea why though).
> #!/bin/bash
> LANG=en_US /opt/Acrobat5/bin/acroread ${1+"$@"}
${1+"$@"} is equivalent to "$@" except in some broken shells that
expand "$@" to "" when $# is zero. I.e., where there shouldn't be any
arguments, they introduce an empty argument instead. I don't know
that this affects any shells that run on GNU/Linux.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the users
mailing list