Re: [osol-discuss] bash signal handling

2009-04-08 Thread Joerg Schilling
casper@sun.com wrote: > Bash doesn't handle signals properly in interactive shells. Bash also does not handle signlals properly in non-interactive shells. If you call bash -c cmd, bash sets up process grous and thus you cannot simply abort layered "make" calls by typing ^C. My "smake" f

Re: [osol-discuss] bash signal handling

2009-04-08 Thread Casper . Dik
>No, I wasn't expecting a response from any particular person. I was just >honestly wondering if this is a controversial point. If not, I'm a >little surprised that no one has modified bash to behave more like other >shells in this respect. Bash doesn't handle signals properly in interactive

Re: [osol-discuss] bash signal handling

2009-04-08 Thread Scott Rotondo
Harry Putnam wrote: Scott Rotondo writes: casper@sun.com wrote: The most broken part of bash is its signal handling: cd /net/somehost/file/dir ; rm -rf * "somehost" hangs; now you type a ^C to interrupt the "cd". What happens? bash-3.2$ sleep 10; echo foo ^C foo bash-3.2$

Re: [osol-discuss] bash signal handling

2009-04-07 Thread Harry Putnam
Scott Rotondo writes: > casper@sun.com wrote: >> The most broken part of bash is its signal handling: >> >> >> >> cd /net/somehost/file/dir ; rm -rf * >> >> "somehost" hangs; now you type a ^C to interrupt the "cd". >> >> What happens? >> >> bash-3.2$ sleep 10; echo foo >> ^C >> foo >>

Re: [osol-discuss] bash signal handling

2009-04-07 Thread Scott Rotondo
casper@sun.com wrote: The most broken part of bash is its signal handling: cd /net/somehost/file/dir ; rm -rf * "somehost" hangs; now you type a ^C to interrupt the "cd". What happens? bash-3.2$ sleep 10; echo foo ^C foo bash-3.2$ Any other shell: $ sleep 10; echo foo ^C$