⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

drain_pipe

Function drain_pipe 

Source
pub fn drain_pipe(reader: &PipeReader) -> Vec<u8>
Expand description

Capture all output written to a pipe writer and return it as bytes.

This is a helper for the shell to capture command output for piping and command substitution. The writer should already be closed.