I'm working on simulating some commands in a Unix-like environment. I'm on Windows 10 and using GitBash's shell to run commands but chmod doesn't appear to keep the permission changes on a file.
zecuse MINGW64 ~ (dev)
$ touch test
zecuse MINGW64 ~ (dev)
$ ls -l test
-rw-r--r-- 1 zecuse 1049089 0 Nov 13 13:30 test
zecuse MINGW64 ~ (dev)
$ chmod -c -r test
mode of 'test' changed from 0644 (rw-r--r--) to 0200 (-w-------)
zecuse MINGW64 ~ (dev)
$ ls -l test
-rw-r--r-- 1 zecuse 1049089 0 Nov 13 13:30 test
Does Windows prevent me from changing file permissions in this way? If so, do I need to use powershell to modify a file's permissions?