Skip to content

Feature request: Option to get the *path* of binary that would be run instead of running it #31

Description

@DrYak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions