The only "configuration" is when you want to switch between alternate Rexx interpreters. Just as you have to run a script to switch between different versions of ooRexx.
With the relocatable executables that ooRexx has, how do man pages get swapped? eg. I have a version of ooRexx installed in say /opt/ooRexx-v5.0.0 which has a rexx.1 man page with certain contents, and I have another version of ooRexx installed in /opt/ooRexx-v5.1.0 which has introduced a new switch to the rexx binary and is documented in the new rexx.1 man page. When I switch executables, how are the equivalent man pages switched so I get the correct man page contents for the correct binary? While the concept of relocatable executables is a great idea for switching between different versions of ooRexx, how does it work when I want to switch between ooRexx and Regina? Cheers, Mark On 7/4/20 9:27 am, Enrico Sorichetti wrote: > I just looked at the man pages both for Ubuntu and Fedora, and it > looks like > The update alternatives have to be configured > > IMO it is much more simple to > Cd <path to the rexx executable directory> > Export PATH=`pwd`:$PATH > Or better use the attached snippets > > It works for me on Darwin Fedora, CentOS > Enrico > > Here are two bash snippets to add/remove a directory to/from the PATH > ( I have also the same for zsh ) > > Cd somewhere and … > > The snippets should be sourced, not executed > > source path.here > . path.here > > source path.remove > . path.remove > > > # path.here > # remove the current path from the PATH and add it to the front > > # add in front of PATH > prepen_path() > { > if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o > -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##$2}\"" ; then > eval "$1=$2:\$$1" > fi > } > > # remove path > remove_path() > { > # front/middle > if eval test -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##*:$2:*}\"" ; then > eval "$1=${!1/$2:/}" > return > fi > # tail > if eval test -z "\"\${$1%%*:$2}\"" ; then > eval "$1=${!1/:$2/}" > return > fi > # only > if eval test -z "\"\${$1##$2}\"" ; then > eval "$1=${!1/$2/}" > return > fi > } > > # the works > here="$(pwd)" > if ! test -d "${here}" ; then > echo "strange ... path not found '${here}'" > else > remove_path PATH "${here}" > export PATH > prepen_path PATH "${here}" > export PATH > fi > > # cleanup > unset prepen_path > unset remove_path > > > > > # path.remove > # remove the current path from the PATH > > # remove path > remove_path() > { > # front/middle > if eval test -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##*:$2:*}\"" ; then > eval "$1=${!1/$2:/}" > return > fi > # tail > if eval test -z "\"\${$1%%*:$2}\"" ; then > eval "$1=${!1/:$2/}" > return > fi > # only > if eval test -z "\"\${$1##$2}\"" ; then > eval "$1=${!1/$2/}" > return > fi > } > > #the works > here="$(pwd)" > if ! test -d "${here}" ; then > echo "strange ... path not found '${here}'" > else > remove_path PATH "${here}" > export PATH > fi > > # cleanup > unset remove_path > > > >> On 7 Apr 2020, at 01:05, Mark Hessling <m...@rexx.org >> <mailto:m...@rexx.org>> wrote: >> >> Hi P.O., >> >> I apologise for problems my changes caused you; it was not >> intentional and if I had known about your problems at the time I >> would have fixed them. >> > -- ------------------------------------------------------------------------ * Mark Hessling, m...@rexx.org http://www.rexx.org/ * Author of THE, a Free XEDIT/KEDIT editor and, Rexx/SQL, Rexx/CURL, etc. * Maintainer of Regina Rexx interpreter * Use Rexx? join the Rexx Language Association: http://www.rexxla.org/ ------------------------------------------------------------------------
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel