Skip to content

Can't grok which on EL9 #44

Description

@vwbusguy

fstransform resolves which to the alias output (which which) instead of it's actual filesystem location (/usr/bin/which) and fails to run.

Overriding this path in the fstransform startup script fixes the problem. Setting --cmd-which=/usr/bin/which, as per the error output, did not have an effect.

# fstransform  /dev/vdb1 ext4                                                                           [1755/1810]
fstransform: starting version 0.9.4, checking environment
fstransform: checking for which...         found 'which ()
{ 
    ( alias;
    eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}', but is NOT executable by you!
fstransform: checking for expr...         '/bin/expr'
fstransform: checking for id...         '/bin/id'

ERROR! fstransform: environment check failed.
       Please install the commands 'which' before running fstransform
       If these commands are already installed, add them to your $PATH
       or tell their location with the option --cmd-COMMAND=/path/to/your/command

# which which
which ()
{ 
    ( alias;
    eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions