murex Shell Docs

Command Reference: <stdin>

Read the STDIN belonging to the parent code block

Description

This is used inside functions and other code blocks to pass that block's STDIN down a pipeline

Usage

<stdin> -> <stdout>

Examples

When writing more complex scripts, you cannot always invoke your read as the first command in a code block. For example a simple pipeline might be:

» function: example { -> match: 2 }

But this only works if -> is the very first command. The following would fail:

# Incorrect code
function: example {
    out: "only match 2"
    -> match 2
}

This is where <stdin> comes to our rescue:

function: example {
    out: "only match 2"
    <stdin> -> match 2
}

This could also be written as:

function: example { out: "only match 2"; <stdin> -> match 2 }

Synonyms

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.