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 Aug 10 06:09:08 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.