I would like to have something like
$ alts -g java
/usr/lib64/jvm/jre-26-openjdk/bin/java
Which would allow stuff like:
…
JAVA="$(alts -g java)"
JAVA_26="$(alts -g java -p 26)"
…
or like:
exec -a 'language-tools' "$(alts -g java)" -cp language-tools-server.jar …
This latter is the use case I am trying to achieve:
I cannot use exec -a '…something…' java to give a meaningful name to the process, because alts relies on the process name (java) to properly dispatch the executable.
I would like to have something like
Which would allow stuff like:
or like:
This latter is the use case I am trying to achieve:
I cannot use
exec -a '…something…'java to give a meaningful name to the process, because alts relies on the process name (java) to properly dispatch the executable.