Re: builtin test command file existence fails with negation

2009-07-22 Thread Pierre Gaston
On Tue, Jul 21, 2009 at 8:42 PM, Lynn Kerby wrote: > > Thanks, I hadn't read the Open Group test command doc. However, I find the > doc inconsistent on this matter when read in its entirety. > > For starters, POSIX doesn't allow for the use of '-a' as a unary operator > (according to the RATIONA

Re: builtin test command file existence fails with negation

2009-07-21 Thread Chet Ramey
> Bash Version: 3.2 > Patch Level: 48 > Release Status: release > > Description: > Use of the '-a' option to the builtin test command fails to > produce the correct result when used with negation. The specific > error the case where the file exists and a "test ! -a file" is >

Re: builtin test command file existence fails with negation

2009-07-21 Thread Lynn Kerby
On Jul 21, 2009, at 8:53 AM, Andreas Schwab wrote: Lynn Kerby writes: Use of the '-a' option to the builtin test command fails to produce the correct result when used with negation. The specific error the case where the file exists and a "test ! -a file" is exe

Re: builtin test command file existence fails with negation

2009-07-21 Thread Andreas Schwab
Lynn Kerby writes: > Use of the '-a' option to the builtin test command fails to > produce the correct result when used with negation. The specific > error the case where the file exists and a "test ! -a file" is > executed. If the script is changed to use '-e' for file >

builtin test command file existence fails with negation

2009-07-21 Thread Lynn Kerby
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' - DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' - DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DP