6 ms·
Does ntfs not have an executable bit as part of its permissions??
by thrkw123456789 10y ago
Does ntfs not have an executable bit as part of its permissions??
- nostalgiac 10y agoYes, it has "Read & Execute". I don't see how this is related though.
- emodendroket 10y agoAnother Windoze joke I guess.
- thrkw123456789 10y agoPlease don't do this. I haven't used Windows much since XP (because of work). I know they've improved permissions and security a lot since then (I remember having to explain to my family members why UAC was a good thing that empowers them) and thought that script execution would be something they'd sorted. I learned something from the other answers on this subthread.
- colejohnson66 10y agoIt has read and execute. However, the JS file is not _executed_; it's _read_ by the interpreter. So an executable bit wouldn't matter as the file could still be read by any interpreter.
- ThisIs_MyName 10y agoThe guy you're replying to is probably used to linux where you can interpret a script the same way you run an executable: http://lxr.free-electrons.com/source/fs/binfmt_script.c http://lxr.free-electrons.com/source/fs/binfmt_script.c You can even add your own executable formats to do stuff like running Java class files by typing `./main.class`: https://www.kernel.org/doc/Documentation/binfmt_misc.txt https://www.kernel.org/doc/Documentation/binfmt_misc.txt
- vertex-four 10y agoOf course, you can run "<interpreter> <file>" anyway and it works, +x or no +x.
- makomk 10y agoYou can do, but because Linux has a mechanism for launching the correct interpreter which honours the +x bit it's unusual for anything to do this automatically, whereas on Windows associating interpreters with scripting formats is exactly the same as associating editors with document formats.
- Arnavion 10y agoAmusingly this was changed with PowerShell in that .ps1 files do not have powershell.exe registered to run them when double-clicked. As a result people complain about it and resort to writing a .bat wrapper around the script.
- toyg 10y agoJS files are not executed; the interpreter cscript.exe is executed, the JS file is simply passed as parameter to be read.