Cygwin fails to change executable bit in some cases

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cygwin fails to change executable bit in some cases

Steven Penny
Setup:

    mkdir /cygdrive/c/sun
    cd /cygdrive/c/sun
    # create "mon.txt" using Windows "New", "Text Document"

Running these commands under Windows 8 yields expected results:

    $ test -x mon.txt && echo x || echo not x
    x

    $ chmod -x mon.txt
    $ test -x mon.txt && echo x || echo not x
    not x

However running the same commands under Windows 7 yields unexpected results:

    $ test -x mon.txt && echo x || echo not x
    x

    $ chmod -x mon.txt
    $ test -x mon.txt && echo x || echo not x
    x


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple