Re: Terminal messed up after exiting bash

2014-09-09 Thread Chet Ramey
On 9/9/14, 4:02 AM, Jan Rome wrote: > I use ash to run a script which has #!/bin/bash > if I run bash and then run the script, the script exits to bash, and if i > then exit bash back to ash, I dont see the problem. The reason is the same as the one in my reply from yesterday to a different report

Re: Trap not being run for all CHLD signals, 4.3

2014-09-09 Thread Chet Ramey
On 9/3/14, 10:08 AM, crispusfairba...@gmail.com wrote: > $ cat parallel-test.bash > function process_job { > sleep 1 > } > > function main { > typeset -i index=0 cur_jobs=0 max_jobs=6 > trap '((cur_jobs--))' CHLD > set -m > > while ((index++ < 30)); do > echo -n "index

Re: Terminal messed up after exiting bash

2014-09-09 Thread Jan Rome
I use ash to run a script which has #!/bin/bash if I run bash and then run the script, the script exits to bash, and if i then exit bash back to ash, I dont see the problem. Best regards, Jan On 9.9.2014 1:58, Ryan Cunningham wrote: This isn't clear to me. Are you using the Almquist Shell to