Skip to main content

needs_continuation

Function needs_continuation 

Source
pub fn needs_continuation(input: &str) -> bool
Expand description

Returns true when input is an incomplete shell construct that needs more input before it can be executed: an open quote, an unterminated here document, or an unfinished compound command.

Callers (the application) use this to buffer lines and show a secondary prompt, as real shells do.