Re: bash 3.2.39 -- race condition

2009-11-26 Thread Pierre Gaston
On Thu, Nov 26, 2009 at 2:35 AM, Douglas Moyes wrote: > I nearly brought down a server today. > > # alias d="perl-script " > > > # d() { > # perl-script $1 |grep something|cut -d ' ' -f 3 > # } > # d something > . . CRASH > > turns out bash went into a loop calling d over and ove

Trouble with 'o' in bash

2009-11-26 Thread Joyce Cheng
Hi all, I am experiencing trouble with the character 'o' in bash-4.0 after a recompilation. It refuses to show up both when I type it, and when I paste in something with o's. However, I am able to get some o's with the completion feature of Bash. I know for a fact that the key itself is no

bash 3.2.39 -- race condition

2009-11-26 Thread Douglas Moyes
I nearly brought down a server today. # alias d="perl-script " # d() { # perl-script $1 |grep something|cut -d ' ' -f 3 # } # d something . . CRASH turns out bash went into a loop calling d over and over again, which resulted in thousands of grep, bash, and -d processes being

make on AIX5.2, using xlc, compile failed on util.c

2009-11-26 Thread bugbash_gnu_org . z . nick_hillman
From: nhma To: bug-bash@gnu.org Subject: make on AIX5.3, using xlc, compile failed on util.c Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: aix5.2.0.0 Compiler: /usr/vac/bin/xlc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTY

IFS handling and read

2009-11-26 Thread Юрий Пухальский
Good day! Theres is a problem with a following code: echo a:b|IFS=: read a b; echo $a According to a standard, i expect the field splitting to occur, thus setting a variable to "a" value. But It doesn't work even with POSIX option. Other shells i can lay my hands upon (native shells on HP-UX and

Re: IFS handling and read

2009-11-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Юрий Пухальский on 11/26/2009 1:02 PM: > Good day! > > Theres is a problem with a following code: > > echo a:b|IFS=: read a b; echo $a This is E4 in the FAQ: ftp://ftp.cwru.edu/pub/bash/FAQ POSIX permits, but does not require, that the

IFS handling and read

2009-11-26 Thread Юрий Пухальский
Good day! Theres is a problem with a following code: echo a:b|IFS=: read a b; echo $a According to a standard, i expect the field splitting to occur, thus setting a variable to "a" value. But It doesn't work even with POSIX option. Other shells i can lay my hands upon (native shells on HP-UX and

Re: 3. Basic Shell Features versus POSIX features

2009-11-26 Thread Chet Ramey
Marc Herbert wrote: > Hi, > > I more or less assumed that section "3. Basic Shell Features" is all > POSIX, in contrast to section "6. Bash Features" which starts like this: > "This section 6 describes features unique to Bash." Not really. The basic shell features are just that: the programming

3. Basic Shell Features versus POSIX features

2009-11-26 Thread Marc Herbert
Hi, I more or less assumed that section "3. Basic Shell Features" is all POSIX, in contrast to section "6. Bash Features" which starts like this: "This section 6 describes features unique to Bash." I think I was wrong. There seems to be at least two non-POSIX features documented in the "Basic" s

Re: Wrong 'declare -A' causes segfault

2009-11-26 Thread Bernd Eggink
Am 26.11.2009 01:47, schrieb Chet Ramey: Bernd Eggink wrote: GNU bash, version 4.0.35(1)-release (i686-pc-linux-gnu) The following syntactically wrong declaration causes a segmentation fault: declare -A x=y It should issue an error message instead. It's not actually a syntax error. H