Re: Inline `ifdef style` debugging

2011-09-14 Thread Roger
>if (( debug )) >then > _debug() > { > "$@" > # I do question whether this is a viable construct, versus > # eval "$@" > } >else > _debug() > { > : > } >fi > >2. The other thing is that instead of > >#!/bin/bash >debug=true > >at the beginning

Re: bash-4.2, crosscompiling and job control compile failure

2011-09-14 Thread Chet Ramey
On 9/14/11 4:57 PM, Maciej Grela wrote: > In which tarball will your fix be released ? I don't understand the > code flow between the tarballs and git on savannah, the git repo > contains only imports from tarballs until 4.0, and the newest tarball > is 4.2. It will come out as part of bash-4.3.

Using TMOUT as default for read bultin is unwise

2011-09-14 Thread Wheatley, Martin R
Configuration Information [Automatically generated, do not change]: Machine: sparc OS: solaris2.7 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' -DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' -DCONF_VENDOR='sun' -DLOCALEDIR='/usr/local/depot/bash-3.

bash-4.2 cross-compiling and job control problem

2011-09-14 Thread Maciej Grela
Hi, I'm trying to crosscompile bash-4.2 for a parisc CPU using Gentoo and I've hit the following error: hppa-unknown-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"hppa"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"hppa-unknown-linux-gnu"' -DCONF_VENDOR ='"unknown"' -DLOCALEDIR='"/usr/shar

Re: bash-4.2, crosscompiling and job control compile failure

2011-09-14 Thread Maciej Grela
2011/9/14 Chet Ramey : >> execute_cmd.c: In function ‘execute_pipeline’: >> execute_cmd.c:2205:23: error: ‘job_control’ undeclared (first use in >> this function) >> execute_cmd.c:2205:23: note: each undeclared identifier is reported >> only once for each function it appears in > > Surrounding thos

Re: bash-4.2, crosscompiling and job control compile failure

2011-09-14 Thread Chet Ramey
> execute_cmd.c: In function ‘execute_pipeline’: > execute_cmd.c:2205:23: error: ‘job_control’ undeclared (first use in > this function) > execute_cmd.c:2205:23: note: each undeclared identifier is reported > only once for each function it appears in Surrounding those two lines with #ifdef

bash-4.2, crosscompiling and job control compile failure

2011-09-14 Thread Maciej Grela
Hi, I'm trying to crosscompile bash-4.2 for a parisc CPU using Gentoo and I've hit the following error: hppa-unknown-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"hppa"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"hppa-unknown-linux-gnu"' -DCONF_VENDOR ='"unknown"' -DLOCALEDIR='"/usr/shar