Coder Social home page Coder Social logo

Comments (4)

patacongo avatar patacongo commented on June 9, 2024 1

Details of the behaviors differ with file system and are not the same for Cygwin and MSYS2:

Cygwin on NTFS:

$ touch testfile

$ ls -l testfile
-rwxrw-r--+ 1 spuda spuda 0 Sep 30 09:10 testfile

$ chmod +x testfile

$ ls -l testfile
-rwxrwxr-x+ 1 spuda spuda 0 Sep 30 09:10 testfile

MSYS2 on NTFS:

$ ls -l testfile
-rw-r--r-- 1 spuda spuda 0 Sep 30 09:10 testfile

$ rm testfile

$ touch anotherfile

$ ls -l anotherfile
-rw-r--r-- 1 spuda spuda 0 Sep 30 09:16 anotherfile

$ chmod +x anotherfile

$ ls -l anotherfile
-rw-r--r-- 1 spuda spuda 0 Sep 30 09:16 anotherfile

from nuttx-apps.

xiaoxiang781216 avatar xiaoxiang781216 commented on June 9, 2024

@baggio63446333 do you know MSYS fail to run "chmod +x"?

from nuttx-apps.

patacongo avatar patacongo commented on June 9, 2024

This is a property of Windows file systems: Windows file systems do not retain a executable bit. In Cygwin (and MSYS which is a Cygwin variant), this property is determined by the file extension. If the file ends in .exe, for example, the file will be reported as executable. See https://cygwin.com/cygwin-ug-net/using-filemodes.html

from nuttx-apps.

patacongo avatar patacongo commented on June 9, 2024

Interesting but off-topic: There are instructions for setting up MSYS2 in github CI here: https://www.msys2.org/docs/ci/

from nuttx-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.