Skip to main content

echo_output

Function echo_output 

Source
pub fn echo_output(args: &[String], config: &EchoConfig) -> Vec<u8> 
Expand description

Produce the output bytes for an echo invocation.

The returned Vec<u8> contains exactly the bytes that should be written to stdout (including or excluding the trailing newline, and with escape sequences expanded when config.interpret_escapes is true).