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'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 12 10:38:51 UTC 2022 against commit 50d6f4550d6f45b79e200b3cbc8e8e2639854a5265c7021.

Current version is 2.4.3010 BETA which has been verified against tests.