err
Print a line to the STDERR
Write parameters to STDERR with a trailing new line character.
err: string to write -> <stderr>
» err Hello, World!
Hello, World!
err
outputs as string
data-type. This can be changed by casting
err { "Code": 404, "Message": "Page not found" } ? cast json
However passing structured data-types along the STDERR stream is not recommended as any other function within your code might also pass error messages along the same stream and thus taint your structured data. This is why murex does not supply a tout
function for STDERR. The recommended solution for passing messages like these which you want separate from your STDOUT stream is to create a new murex named pipe.
» pipe: --create messages
» bg { <messages> -> pretty }
» tout: <messages> json { "Code": 404, "Message": "Page not found" }
» pipe: --close messages
{
"Code": 404,
"Message": "Page not found"
}
err
supports ANSI constants.
(
(brace quote): Write a string to the STDOUT without new line<>
/ read-named-pipe
: Reads from a murex named pipe>>
(append file): Writes STDIN to disk - appending contents if file already exists>
(truncate file): Writes STDIN to disk - overwriting contents if file already existsbg
: Run processes in the backgroundcast
: Alters the data type of the previous function without altering it’s outputout
: Print a string to the STDOUT with a trailing new line characterpipe
: Manage murex named pipespretty
: Prettifies JSON to make it human readablept
: Pipe telemetry. Writes data-types and bytes writtentout
: Print a string to the STDOUT and set it’s data-typeThis 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 Mon Feb 13 09:18:06 UTC 2023 against commit f339958f33995895c1d997efcdbb8408d2c8d45f8b5f934.
Current version is which has been verified against 13950 tests cases.