| Summary: | some example source files marked as executable | ||
|---|---|---|---|
| Product: | Bugzilla | Reporter: | Stephan Lachnit <stephan.lachnit> |
| Component: | general | Assignee: | Gunter.Folger |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | other | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
Stephan Lachnit
2020-10-29 11:04:42 CET
While browsing the examples I found that whether scripts have a shebang or not and whether they are marked as executable or not is kinda random. For example advanced/hadrontherapy/clean.sh doesn't have a shebang and is not marked as executable, extended/electromagnetic/TestEm10/test_suite.sh has a shebang and is marked as executable. The simplest solution would be to make all of the executable again after making everything non-executable with the command mentioned before (however one might want to check that they all have an appropriate shebang). A full list of all the scripts with an appropriate path ending in the examples can be retrieved with: find ./examples -regex '.*\.c?sh' Hello Stephan, thanks for the report. For most filetypes it should be straightforward to fix permissions. We'll try to address this in the upcoming release. For scripts however, our main platform is Unix, not Windows, thus the extension is only guidance, scripts can have any extension, notably none; therefore I'm afraid not all scripts will be .sh/.csh. Thanks again, also for the URL to the detailed report, Gunter Thanks for taking a look at this. With `grep -Rl '^#!/' ./examples` you can find a list with every file beginning with a shebang line (i. e. scripts). Together with `find ./examples -regex '.*\.c?sh'` for scripts without a shebang, it should be easy to find all scripts. Hello Stephan, the permissions for all files in geant4 have been corrected, with the exception of one file in the advanced nanobeam example; the file OM50.grid is large, and we need to review if we will keep this as part of our git repositroy or if we distribute this with the web. I am closing this report, feel free to re-open if needed, Gunter Thanks! |