jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: system and shell redirect


On 13.10.05, Romano Giannetti wrote:
> On Thu, Oct 13, 2005 at 12:10:48PM +0200, G. Milde wrote:

> > ... it was possible to use
> > 
> >   system("which jed >& /dev/null");
> >   
> > to do away with the output. Now (Jed Version: B0.99.17-111
> > S-Lang Version: 2.0.4) the return value of this command with shell redirect
> > is 512.
> 
> Hmm... the >& is a csh-ism, no? maybe Jed switched from using the user shell
> to using bourne shell inconditionally for the system() call? 

Thanks Romano and Jörg.

I blamed jed 99.17 in error. 

The ">&" construct is not mine. In the light of your responses, i assume
now: 1) my co-author uses a C shell, 2) it still works there, and 3) it
never worked right here but I did not realize.

Jörgs idea with "which jed 2>&1 > /dev/null" works fine here.

So you can find a fixed browse_url.sl at
http://jedmodes.sf.net/mode/browse_url/

Guenter

-- 
G.Milde web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]