• Re: Path and/or alias finding

    From Lawrence D'Oliveiro@21:1/5 to Robert Heller on Wed Jul 31 07:17:37 2024
    On Fri, 14 Jun 2024 18:50:02 +0000, Robert Heller wrote:

    marchhare% which dir
    dir: aliased to ls -F -C
    marchhare% echo $SHELL
    /bin/tcsh

    I don’t think it’s specified by POSIX. bash has the “type” builtin which,
    being builtin, can report on whether a given command is itself a builtin
    or alias or function or an external executable.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Carlos E.R. on Wed Jul 31 07:18:00 2024
    On Fri, 14 Jun 2024 22:02:01 +0200, Carlos E.R. wrote:

    I knew about "type", but I don't use it.

    In bash, “help type” will tell you all about it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Lew Pitcher on Wed Jul 31 07:18:58 2024
    On Fri, 14 Jun 2024 20:24:53 -0000 (UTC), Lew Pitcher wrote:

    bash(1) says
    "Aliases are created and listed with the alias command,
    and removed with the unalias command."

    Functions are more powerful than aliases. They can take arguments and run entire command sequences, all within the current shell process.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)