Hi Leslie,
On 13.03.2025 06:01, J Leslie Turriff via Oorexx-devel wrote:
On 2025-03-12 07:56:52 Rony G. Flatscher wrote:
On 12.03.2025 12:44, Michael Lueck wrote:
Greetings Rony,
Rony G. Flatscher wrote:
As such I would assume to be safe to add the hashbang "#!/usr/bin/env
rexx" as the first line directly to all those files that you found not
to have it. Then all Rexx scripts would adhere to the hashbang pattern.
Is calling env the multi-ooRexx instance safe method?
I have always set my value based on the result of:
$ which rexx
/usr/local/bin/rexx
Also a last step (beyond adding the hashbang) is on Linux file systems,
setting the Rexx scrip file to be executable.
What you do is hardcoding the path to your installation of rexx. If rexx
gets installed to a different directory or if you use the portable version
of ooRexx thenĀ rexx found via the environment variable PATH does not get
found and does not get used.
The hash bang convention and using env is not a Rexx convention but a
general Unix convention, hence it makes sense to adhere to it.
---
Have you already tested your program with 4.2, 5.0.0 and 5.1.0beta?
---rony
Actually, the proper way on Linux systems is to use the
update-alternatives
tool, which maps multiple versions of a package to a generic name via
symbolic links. It can map the executables, any associated libraries, and
other resources (documentation, samples, etc.) for multiple versions.
... cut ...
Yes, you are right for Linux, Mark Hessling (author and maintainer of Regina) has supplied patches
in the past for allowing update-alternatives on Linux installations to switch between ooRexx and
Regina. However, back then his patch was not applied (I do not know the reason).
In the meantime the "portable version" of ooRexx is multi-platform and enables one to use/experiment
with multiple versions of ooRexx 5+ on the same (or differnt) machines. This has become possible
with ooRexx 5.0.0 as that version starts to use version specific rxapi services.
The net-oo-rexx packaging exploits this feature and adds useful packages at the same time like Jean
Louis' multiplatform oorexxshell (worthwhile for its multiplatform services and features) or Dom's
great rexxdebugger or the ooRexx-Java bridge bsf4oorexx850.
Cheers
---rony
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel