Re: 'test' builtin of bash returns wrong value for '! -a FILE' operation

2010-11-09 Thread OZAKI Masanobu
Hello. On Mon, 2010-11-08 at 08:45:11 -0500, Greg Wooledge wrote: > On Fri, Nov 05, 2010 at 04:24:23PM -0500, Jonathan Nieder wrote: > > >>> Please try > > >>> % bash -c 'test ! -a . && echo true' > > >>> and compare with the result of > > >>> % bash -c '/usr/bin/test ! -a . && echo true' >

Re: 'test' builtin of bash returns wrong value for '! -a FILE' operation

2010-11-09 Thread Greg Wooledge
On Tue, Nov 09, 2010 at 08:29:15PM +0900, OZAKI Masanobu wrote: > Greg Wooledge wrote: > > (On my system, there is no -a unary operator in the test(1) man page, but > > the command apparently supports one, undocumented. Isn't this fun?) > > Neither on my system. I found descriptions of the -a u

Re: 'test' builtin of bash returns wrong value for '! -a FILE' operation

2010-11-08 Thread Chet Ramey
> "help test" says: > > See the bash manual page bash(1) for the handling of > parameters (i.e., missing parameters). > > which does not really tempt me to look at the manual. You should probably ask the person who added that to Debian's version of bash. > bash(1) says: > > E

Re: 'test' builtin of bash returns wrong value for '! -a FILE' operation

2010-11-08 Thread Greg Wooledge
On Fri, Nov 05, 2010 at 04:24:23PM -0500, Jonathan Nieder wrote: > >>> Please try > >>> % bash -c 'test ! -a . && echo true' > >>> and compare with the result of > >>> % bash -c '/usr/bin/test ! -a . && echo true' imadev:~$ bash -c 'test ! -a . && echo true' true imadev:~$ bash -c '/usr/bin/te

Re: 'test' builtin of bash returns wrong value for '! -a FILE' operation

2010-11-07 Thread Jonathan Nieder
tags 426990 - moreinfo tags 426990 + upstream # documentation bug severity 426990 minor retitle 426990 bash: "help test" gives no hint of complicated precedence rules quit OZAKI Masanobu wrote: > On Fri, 2010-11-05 at 03:17:13 -0500, Jonathan Nieder > wrote: >>> Please try >>> % bash -c 'test