Re: test -e cannot distinguish between foo and foo.exe

2005-12-19 Thread Eric Blake
> I noticed the following behaviour: (found by my favorite testcase ;) ) > > $ rm -rf foo* ; touch foo.exe > > $ test -e foo && echo found foo > found foo > > $ test -e foo.exe && echo found foo.exe > found foo.exe > > Hmm, how can I test if foo exists without also looking at foo.exe? > Does th

Re: test -e cannot distinguish between foo and foo.exe

2005-12-19 Thread Christopher Faylor
On Mon, Dec 19, 2005 at 03:22:54PM +, Cliff Hones wrote: >Volker Quetschke wrote: >> I noticed the following behaviour: (found by my favorite testcase ;) ) >> >> $ rm -rf foo* ; touch foo.exe >> >> $ test -e foo && echo found foo >> found foo >> >> $ test -e foo.exe && echo found foo.exe >>

Re: test -e cannot distinguish between foo and foo.exe

2005-12-19 Thread Cliff Hones
Volker Quetschke wrote: > I noticed the following behaviour: (found by my favorite testcase ;) ) > > $ rm -rf foo* ; touch foo.exe > > $ test -e foo && echo found foo > found foo > > $ test -e foo.exe && echo found foo.exe > found foo.exe > > Hmm, how can I test if foo exists without also looki

test -e cannot distinguish between foo and foo.exe

2005-12-19 Thread Volker Quetschke
I noticed the following behaviour: (found by my favorite testcase ;) ) $ rm -rf foo* ; touch foo.exe $ test -e foo && echo found foo found foo $ test -e foo.exe && echo found foo.exe found foo.exe Hmm, how can I test if foo exists without also looking at foo.exe? Does this count as a bug in te