Date:        Tue, 26 Nov 2024 16:23:56 +1000
    From:        Martin D Kealey <mar...@kurahaupo.gen.nz>
    Message-ID:  
<can_u6mx2++5wven+b8fjgjk-4vsutwdxrvq0ozamrtp5xq+...@mail.gmail.com>

  | I'm not convinced that ‘command’ should mention aliases at all, since
  | ‘command -v "$var"’ should tell you what ‘"$var"’ will do.
  | What it *won't* do is be expanded as an alias.

Absolute nonsense.   Once again you seem to either have no idea how shells
work, or are attempting to redefine them to suit your desire for how they
should work.

Given
        var=foo

There is literally no difference between

        command -v "$var"
and
        command -v foo

when "command" runs.   And if earlier foo had been defined as

        alias foo='ls -F'

then both forms will tell you that foo is an alias.

kre

Reply via email to