Releasing new sh-utils now with access() change?

Pierre A. Humblet Pierre.Humblet@ieee.org
Fri Feb 28 17:36:00 GMT 2003


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



More information about the Cygwin-developers mailing list