This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Releasing new sh-utils now with access() change?
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 28 Feb 2003 12:38:36 -0500
- Subject: Re: Releasing new sh-utils now with access() change?
- References: <20030228170058.GA9681@redhat.com>
Christopher Faylor wrote:
>
> Pierre,
> There is no reason for me to hold off on releasing a new sh-utils, with
> the eaccess -> access change now, right? /bin/test won't work any worse
> than it does already with this change, right?
>
> cgf
Chris,
I would not release a new /bin/test until 1.3.21 is out.
With 1.3.20 the behavior will be different, sometimes better,
sometimes worse.
In particular the current /bin/test always produces correct
results on files created by Cygwin, while sh (and the new
/bin/test ) currently don't.
/> ls -l test3
---x-wxrwx 1 PHumblet Users 0 Feb 18 16:20 test3*
/> if /bin/test -r test3 ; then echo yes; else echo no; fi
no
/> sh -c 'if [ -r test3 ] ; then echo yes; else echo no; fi'
yes <== WRONG
/> bash -c 'if [ -r test3 ] ; then echo yes; else echo no; fi'
no
Pierre