[Bash-completion-devel] -o posix, IFS and local
Crestez Dan Leonard
cdleonard at gmail.com
Mon Feb 8 01:38:03 UTC 2010
On Sat, 2010-02-06 at 13:57 +0100, Freddy Vulto wrote:
> I was able to reproduce the problem on bash-4.0.33 and bash-3.2.39 with a very
> little script:
>
> set -o posix
> t() {
> local x
> BAR=a eval true
> }
> BAR=b; t; echo $BAR
>
> outputs "a", but with `#local x' commented outputs "b", whereas it should
> always output "a" according to your citation. I can't make sense of it either.
> I think we should report this to bug-bash at gnu.org
Reported:
http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/c6417f9a517d52cc
More information about the Bash-completion-devel
mailing list