murex Shell Docs

Parser Reference: Arrow Pipe (->) Token

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


This token behaves much like pipe would in Bash or similar shells. It passes STDOUT along the pipeline while merging STDERR stream with the parents STDERR stream.

-> differs from | in the interactive terminal where it produces different autocompletion suggestion. It returns a list of “methods”. That is, commands that are known to support the output type of the previous command. -> helps with the discovery of commandline tools.

In shell scripts, -> and | can be used interchangeably.


» out: Hello, world! -> regexp: s/world/Earth/
Hello, Earth!

» out: Hello, world!->regexp: s/world/Earth/
Hello, Earth!

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

» err: Hello, world! -> regexp: s/world/Earth/
Hello, world!

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.