murex Shell Docs

Parser Reference: STDERR Pipe (?) Token

Pipes STDERR from the left hand command to STDIN of the right hand command

Description

This token swaps the STDOUT and STDERR streams of the left hand command.

Please note that this token is only effective when it is prefixed by white space.

Examples

» err Hello, world! ? regexp s/world/Earth/
Hello, Earth!

In following example the first command is writing to STDOUT rather than STDERR so Hello, world! doesn’t get pipelined and thus isn’t affected by regexp:

» out Hello, world! ? regexp s/world/Earth/
Hello, world!

In following example the STDERR token isn’t whitespace padded so is treated like any ordinary printable character:

» err Hello, world!? regexp s/world/Earth/
Hello, world!? regexp s/world/Earth/

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 Thu Oct 13 08:08:18 UTC 2022 against commit ed6b6fced6b6fc609f4be93c5d3348695a762facfecf48f.

Current version is 2.11.2200 which has been verified against 16798 tests cases.