Skip to main content

stdout_is_regular_file

Function stdout_is_regular_file 

Source
pub fn stdout_is_regular_file() -> bool
Expand description

Whether this process’s stdout is a regular file (as opposed to a pipe, terminal, or device).

Strict mode uses this to catch murk export > secrets.env style redirects that would persist plaintext secrets to disk, while still allowing the eval "$(murk export)" pipe that direnv relies on. Unix-only; returns false elsewhere (can’t determine — don’t block).