Re: Array parameter expansion with non-space-IFS on bash-3/4

2009-11-29 Thread DennisW
On Nov 27, 3:47 pm, Freddy Vulto wrote: > I noticed different behaviour between bash-3 and bash-4 when > performing parameter expansion on an array with IFS set to a non-space > value.  For example, on bash-3.2.39, I get: > >     $ bash -c 'IFS=:; printf "<%s>\n" "${@/q}"' x a b >     > > Whereas

Re: ESC SPC please

2009-11-29 Thread Pierre Gaston
On Sun, 29 Nov 2009, jida...@jidanni.org wrote: PG> maybe try the following macro: PG> bind '"\M- ":"\M-\\ "' Sorry, that doesn't work on the command line or .inputrc. No effect. ah, it works for me.

Re: bash 3.2.39 -- race condition

2009-11-29 Thread Douglas Moyes
Chet Ramey wrote: 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 over again, which resulted in thou

Re: Array parameter expansion with non-space-IFS on bash-3/4

2009-11-29 Thread Chet Ramey
DennisW wrote: > On Nov 27, 3:47 pm, Freddy Vulto wrote: >> I noticed different behaviour between bash-3 and bash-4 when >> performing parameter expansion on an array with IFS set to a non-space >> value. For example, on bash-3.2.39, I get: >> >> $ bash -c 'IFS=:; printf "<%s>\n" "${@/q}"' x