Re: Netscape communicator helper applications and bash
"Jan Weytjens" <[EMAIL PROTECTED]> writes: > The problem is the (mis)matching of the parentheses. > When run in an xterm window, I get the same error message. > Apparently, the problem is with bash (/bin/sh is a link to /bin/bash) which > complains about about the following syntax: > > ((echo A); echo B) > > Interestingly, at work we use bash on both SGI and Sun workstations. > bash on Sun does have the same problem, while bash on SGI doesn't. > > Is there a clean solution? You can install ash and make that your sh; I also have bash 2.01 binaries built on my bo (libc5) system; however, I wasn't careful about the version numbers when I made them so they don't really fit into debian's version scheme, (namely, the version number looks like a maintainer's version number, whereas I am not the bash maintainer) and you'll have to remember to upgrade them manually if/when you go to hamm. If you want them, they're available at http://www.math.jhu.edu/~martind/bash/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Netscape communicator helper applications and bash
"Jan Weytjens" <[EMAIL PROTECTED]> writes: > The error is in the shell command communicator tries to run with sh: > > ((/usr/bin/acroread /tmp/MOsomething.pdf); rm /tmp/MOsomething.pdf)& > > where MOsomething.pdf is a temporary file in the /tmp directory. > The problem is the (mis)matching of the parentheses. > When run in an xterm window, I get the same error message. > Apparently, the problem is with bash (/bin/sh is a link to /bin/bash) which > complains about about the following syntax: > > ((echo A); echo B) > > Interestingly, at work we use bash on both SGI and Sun workstations. > bash on Sun does have the same problem, while bash on SGI doesn't. > > Is there a clean solution? Upgrade or downgrade Bash. This problem is specific to the 2.00 version in 1.3. The error occurs because bash parses the first two parenthesis as part of a (( )) construction (which has a special meaning). Wether this is an error or a feature is a subject of discussion, but the problem dissappears in version 2.01 - Sten Anderson -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Netscape communicator helper applications and bash
I have Apache (from the debian distribution 1.3) running on a Toshiba 530CDT notebook running Linux 2.0.30 (debian 1.3). I also have Netscape communicator 4.04 on the same machine. When I configure edit preferences navigator applications to use acroread to open URLs pointing to pdf files as follows: DescriptionPortable Document Format MIME type application/pdf Suffixs pdf Application /usr/bin/acroread %s I get an error when I open URLs that point to pdf documents. The error is in the shell command communicator tries to run with sh: ((/usr/bin/acroread /tmp/MOsomething.pdf); rm /tmp/MOsomething.pdf)& where MOsomething.pdf is a temporary file in the /tmp directory. The problem is the (mis)matching of the parentheses. When run in an xterm window, I get the same error message. Apparently, the problem is with bash (/bin/sh is a link to /bin/bash) which complains about about the following syntax: ((echo A); echo B) Interestingly, at work we use bash on both SGI and Sun workstations. bash on Sun does have the same problem, while bash on SGI doesn't. Is there a clean solution? Jan -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .