bug batch

2013-06-12 Thread Dan Douglas
Hello, Clearing out the remainder of my "maybe bugs" file, in no particular order. 1. Arithmetic assignment precedence / associativity. Most shells (and GCC) consider not grouping the assignment in a situation like this an error. Bash tolerates it, apparently reversing associativity: : $((

Re: regex confusion -- not matching; think it should?

2013-06-12 Thread Linda Walsh
Linda Walsh wrote: The trace looks aprolike this: ./ifc#137(handle_bonding_ops)> (( 18>3 )) ./ifc#138(handle_bonding_ops)> [[ mode=balance-rr 0 =~ x^-extra space at least it works now!

regex confusion -- not matching; think it should?

2013-06-12 Thread Linda Walsh
The trace looks aprolike this: ./ifc#137(handle_bonding_ops)> (( 18>3 )) ./ifc#138(handle_bonding_ops)> [[ mode=balance-rr 0 =~ ^([a-zA-Z][-a-zA-Z0-9_]+)=(.+)[[:space:]]+[a-zA-Z][-a-zA-Z0-9_]+=.+.*$ ]] ./ifc#142(handle_bonding_ops)> [[ mode=balance-rr 0 =~ ^([a-zA-Z][-a-zA-Z0-9_]+)=(.+)

Re: deadlock in waitchld()

2013-06-12 Thread Chet Ramey
On 6/12/13 3:00 AM, Roman Rakus wrote: > On 05/24/13 16:00, Chet Ramey wrote: >> On 5/24/13 9:30 AM, Roman Rakus wrote: >>> The race is in do-while loop in wait_for(). At the start of wait_for() we >>> are blocking SIGCHLD, however echo process ends during the loop and we >>> don't register it (don

Re: \H in PS1 adds the hostname without the domain to the prompt

2013-06-12 Thread Greg Wooledge
On Wed, Jun 12, 2013 at 07:37:09AM +0200, Sascha Gaspar wrote: >The \H in PS1 adds the hostname without the domain to the prompt. >According to the man page \h outputs the hostname up to the first `.' >and \H outputs the the hostname. I think that should be the FQDN? Well, the manual s

\H in PS1 adds the hostname without the domain to the prompt

2013-06-12 Thread Sascha Gaspar
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc'

Re: deadlock in waitchld()

2013-06-12 Thread Roman Rakus
On 05/24/13 16:00, Chet Ramey wrote: On 5/24/13 9:30 AM, Roman Rakus wrote: The race is in do-while loop in wait_for(). At the start of wait_for() we are blocking SIGCHLD, however echo process ends during the loop and we don't register it (don't handle SIGCHLD, which is sent). Looking at the cod