Re: jobs not working in bash scripts (?)

2005-07-22 Thread William Park
On Fri, Jul 22, 2005 at 01:50:49PM +0200, Rainer Dorsch wrote: > Hello, > > I was debugging a larger script, and found that the buildtin jobs command > does > not work in bash scripts, altough it does in an interactive shell: > > [EMAIL PROTECTED]:~/tmp.nobackup$ cat testjob > #!/bin/bash > >

Re: unsafe signal handler

2005-07-22 Thread Tim Waugh
I am looking at bash-3.0, trying to untangle the termination_unwind_protect() signal handler. I cannot work out under what circumstances the function run_interrupt_trap() is called. sighandler termination_unwind_protect (sig) int sig; { if (sig == SIGINT && signal_is_trapped (SIGINT))

jobs not working in bash scripts (?)

2005-07-22 Thread Rainer Dorsch
Hello, I was debugging a larger script, and found that the buildtin jobs command does not work in bash scripts, altough it does in an interactive shell: [EMAIL PROTECTED]:~/tmp.nobackup$ cat testjob #!/bin/bash sleep 35 & jobs -p %% [EMAIL PROTECTED]:~/tmp.nobackup$ ./testjob [EMAIL PROTECTED]: