Skip to main content

segment_consumes_shell_stdin

Function segment_consumes_shell_stdin 

Source
pub fn segment_consumes_shell_stdin(words: &[String]) -> bool
Expand description

True when the simple command reads its script from stdin (bash -s, sh -, /dev/stdin, …), including through wrapper binaries such as sudo or env -S.