murex Shell Docs

Command Reference: exec

Runs an executable

Description

With murex, like most other shells, you launch a process by calling the name of that executable directly. While this is suitable 99% of the time, occasionally you might run into an edge case where that wouldn't work. The primary reason being if you needed to launch a process from a variable, eg

» set exe=uname
» $exe
uname

As you can see here, murex's behavior here is to output the contents of the variable rather then executing the contents of the variable. This is done for safety reasons, however if you wanted to override that behavior then you could prefix the variable with exec:

» set exe=uname
» exec $exe
Linux

Usage

<stdin> -> exec
<stdin> -> exec -> <stdout>
           exec -> <stdout>

Examples

» exec printf "Hello, world!"
Hello, world!

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon May 25 06:11:51 UTC 2020 against commit aa3f3b7aa3f3b7e471543754fdcaf910d4920cad9112b91. Downloadable murex binaries are also built weekly. Current version is 0.48.0120 BETA which has been verified against 29375 tests.