This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]