Skip to main content

? stderr Pipe

Laurence MorganLess than 1 minuteOperators And Tokens

? stderr Pipe

Pipes stderr from the left hand command to stdin of the right hand command (DEPRECATED)

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.

This feature has been deprecated. Please use <err> <!out> instead. For example:

command <err> <!out> parameter-1 parameter-2 -> next-command parameter-1

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 document was generated from gen/parser/pipes_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan