Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

Re: Diagnosing "helper app spawn" errors with Netscape 4

jhenders@bogon.com
Tue, 24 Mar 1998 01:30:12 -0800

On Tue, Mar 24/98, Kevin Chu <kevin@portal.ca> wrote:
> Ted Powell wrote:
>
> > 2.00 is, I gather, the first version of bash to implement the
> > arithmetic command
>
> > Earlier versions of bash already had arithmetic expansion, by the
>
> This is how it works here:
>
> > [kevin@localhost kevin]$ rpm -q bash
> > bash-1.14.7-1
> > [kevin@localhost kevin]$ bash -c '((/usr/local/bin/rvplayer /tmp/foo); rm /tmp/foo) &'
> > [kevin@localhost kevin]$ bash: /usr/local/bin/rvplayer: No such file or directory
> > rm: /tmp/foo: No such file or directory
> >

Well, looks like the 2.00 bash is a little picky. Here's how it works
here and the fix. One space.

$ fortune >/tmp/foo;bash -c '((/bin/cat /tmp/foo); rm /tmp/foo) &'
bash: -c: line 1: missing closing `)' for arithmetic expression
bash: -c: line 1: syntax error near unexpected token `;'
bash: -c: line 1: `((/bin/cat /tmp/foo); rm /tmp/foo) &'

$ fortune >/tmp/foo;bash -c '( (/bin/cat /tmp/foo); rm /tmp/foo) &'
$
statistics, n.:
A system for expressing your political prejudices in convincing
scientific guise.

-- 
  Artificial Intelligence stands no chance against Natural Stupidity.
            GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
                 b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*