type
)Command type (function, builtin, alias, etc)
type
returns information about the type of the command.
This is a POSIX requirement and not to be confused with Murex data
types.
type command -> <stdout>
» type murex-docs
`murex-docs` is a shell function:
# Wrapper around builtin to pipe to less
config: set proc strict-arrays false
fexec: builtin murex-docs @PARAMS | less
» type murex-docs -> cat
function
There are a few different types of commands:
This will be represented in which
and type
by the term alias and, when stdout is a TTY,
which
will follow the alias to print what command the alias
points to.
This is a Murex function (defined via function
) and will
be represented in which
and type
by the term
function.
This is a private function (defined via private
) and
will be represented in which
and type
by the
term private.
This is a shell builtin, like out
and exit
.
It will be represented in which
and type
by
the term builtin.
This is any other external command, such as systemctl
and python
. This will be represented in which
by the path to the executable. When stdout is a TTY, which
will also print the destination path of any symlinks too.
In type
, it is represented by the term
executable.
alias
): Create an alias for a commandexec
): Runs an executablefexec
): Execute a command or function, bypassing the
usual order of precedence.exit
):
Exit murexwhich
): Locate command originout
):
Print a string to the stdout with a trailing new line characterfunction
): Define a function blockThis document was generated from builtins/core/management/type_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Wed Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.