Dear P.O.,

On 12.03.2025 14:33, ooRexx wrote:
As I already stated this modification involves changes to CMakeLists.txt /that are beyond my knowledge/. It is not merely adding a shebang to the samples, the shebang is created during the build, potentially differently for different platforms. I was not able to make this work, hence my question to the CMakeList savvy to do it. As Gil pointed out already many files on Windows lack the hashbang so there is already a mix on Windows. One would need to look in more than one place in CMakeLists.txt to perform the change possibly, it is not so straight forward as I originally thought.

Will look into it when time permits. My recollection is that adding the shebangs explicitly to the Rexx scripts would "survive" the build. :) Again, will have to double check the next time building ooRexx (still on my old, very slow machine).

One more point ad shebangs: any Rexx script that can be run on Unix and Windows should have the shebang. The Windows users are usually able to realize that the shebang is meant for Unix. Now that Windows allows for integrating Linux subsystems it may make sense to have them on Windows anyway.

To simplify things (i.e. allow in principle to have any Rexx script run on any operating system) I would always add the shebang to Rexx scripts, no matter whether they are meant to run on Unix only, Windows only or on both. (Shebangs per se do not introduce technical problems, but enhance the flexibility in certaine execution environments.)


The list in the bug report is not complete, I found at least one more (there might be other as well), here the list on an installed CentOS machine:

/usr/local/share/ooRexx/samples/api/classic/callrexx/example.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/load_macro.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/del_macro.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/macros.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/startrx1.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/startrx2.rex
/usr/local/share/ooRexx/samples/api/classic/callrexx/startrx3.rex

/usr/local/share/ooRexx/samples/api/classic/rexxapi1/apitest1.rex
/usr/local/share/ooRexx/samples/api/classic/rexxapi2/apitest2.rex
/usr/local/share/ooRexx/samples/api/classic/rexxapi3/apitest3.rex

Thanks for this updated list.

Cheers

---rony

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to