Re: problems running Acrobat Reader 5

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

 



On Nov 13, 2003, Ian Pilcher <i.pilcher@xxxxxxxxxxx> 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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux