Re: Bug with -o posix, local variables and assignment preceding builtins

2010-02-10 Thread Crestez Dan Leonard
On Mon, 2010-02-08 at 17:38 -0500, Chet Ramey wrote: > On 2/7/10 8:33 PM, Crestez Dan Leonard wrote: > > We encountered a strange bug while working on bash-completion. I was > > originally only able to reproduce this through a fairly elaborate setup > > but Freddy Vulto f

Bug with -o posix, local variables and assignment preceding builtins

2010-02-07 Thread Crestez Dan Leonard
We encountered a strange bug while working on bash-completion. I was originally only able to reproduce this through a fairly elaborate setup but Freddy Vulto found a tiny test case: set -o posix t() { local x BAR=a eval true } BAR=b; t; echo $BAR Bash documentatio