Re: Bash bug interpolating delete characters

2012-05-07 Thread John Kearney
Am 07.05.2012 22:46, schrieb Chet Ramey: > On 5/3/12 5:53 AM, Ruediger Kuhlmann wrote: >> Hi, >> >> please try the following bash script: >> >> a=x >> del="$(echo -e "\\x7f")" >> >> echo "$del${a#x}" | od -ta >> echo "$del ${a#x}" | od -ta >> echo " $del${a#x}" | od -ta >> >> Using bash 3.2, the ou

Re: Bash bug interpolating delete characters

2012-05-07 Thread Chet Ramey
On 5/3/12 5:53 AM, Ruediger Kuhlmann wrote: > Hi, > > please try the following bash script: > > a=x > del="$(echo -e "\\x7f")" > > echo "$del${a#x}" | od -ta > echo "$del ${a#x}" | od -ta > echo " $del${a#x}" | od -ta > > Using bash 3.2, the output is: > > 000 del nl > 002 > 000 d

Re: Parallelism a la make -j / GNU parallel

2012-05-07 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/5/12 12:28 AM, Mike Frysinger wrote: > On Friday 04 May 2012 16:17:02 Chet Ramey wrote: >> On 5/4/12 2:53 PM, Mike Frysinger wrote: >>> it might be a little racy (wrt checking cnt >= 10 and then doing a wait), >>> but this is good enough for some

Re: Parallelism a la make -j / GNU parallel

2012-05-07 Thread Chet Ramey
On 5/6/12 3:25 AM, John Kearney wrote: > Am 06.05.2012 08:28, schrieb Mike Frysinger: >> On Saturday 05 May 2012 23:25:26 John Kearney wrote: >>> Am 05.05.2012 06:28, schrieb Mike Frysinger: On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > On 5/4/12 2:53 PM, Mike Frysinger wrote: >>

Re: Parallelism a la make -j / GNU parallel

2012-05-07 Thread Chet Ramey
On 5/5/12 11:25 PM, John Kearney wrote: > Is there actually a guarantee that there will be 1 SIGCHLD for every > exited process. The manual page says, under JOB CONTROL: Any trap on SIGCHLD is executed for each child that exits. > Isn't it actually a race condition? No. waitpid() returns once

Re: Parallelism a la make -j / GNU parallel

2012-05-07 Thread Chet Ramey
On 5/5/12 2:37 AM, Andreas Schwab wrote: > (bash) Bash POSIX Mode:: > > 46. The arrival of `SIGCHLD' when a trap is set on `SIGCHLD' does not > interrupt the `wait' builtin and cause it to return immediately. > The trap command is run once for each child that exits. > > (I think the