Re: if, -n

2009-02-01 Thread coubeatczech
Jan Schampera wrote: > > coubeatczech wrote: > >> c...@notas:~$ if [ -z $variable ]; then echo true; fi >> true >> c...@notas:~$ >> >> Can anybody explain to me this behaviour? I would expect not any output >> in >> the last command...? The variable is set to zero and there is the >> condition

Re: if, -n

2009-02-01 Thread Jan Schampera
coubeatczech wrote: > c...@notas:~$ if [ -z $variable ]; then echo true; fi > true > c...@notas:~$ > > Can anybody explain to me this behaviour? I would expect not any output in > the last command...? The variable is set to zero and there is the condition > is still true...? http://bash-hackers.

Re: if, -n

2009-02-01 Thread coubeatczech
Eric Blake wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to coubeatczech on 1/31/2009 7:24 AM: >> c...@notas:~$ variable= >> c...@notas:~$ if [ -n $variable ]; then echo true; fi >> true > > This is equivalent to 'if [ -n ]; then echo true; fi'; in other words, > be

bash 3.2 and bash 4.0 (RC1) fail to build statically

2009-02-01 Thread alex
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Description: http://pastebin.com/f476b80da configured via: http://pastebin.com/m62b92718 Adding --enable-minimal doesn't fix the issue which means these versions b

Re: Different COMP_WORDS array values with exactly the same commandline

2009-02-01 Thread Chet Ramey
wer...@suse.de wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i586 > OS: linux-gnu > Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 > -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' > -DCO