mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Allow unclosed subshells in interactive mode
If the user has an unclosed subshell in interactive mode, break the line instead of producing an error. Fixes #6316
This commit is contained in:
@@ -891,6 +891,10 @@ static void test_parser() {
|
||||
err(L"unterminated pipe not reported properly");
|
||||
}
|
||||
|
||||
if (parse_util_detect_errors(L"echo (\nfoo\n bar") != PARSER_TEST_INCOMPLETE) {
|
||||
err(L"unterminated multiline subhsell not reported properly");
|
||||
}
|
||||
|
||||
if (parse_util_detect_errors(L"begin ; true ; end | ") != PARSER_TEST_INCOMPLETE) {
|
||||
err(L"unterminated pipe not reported properly");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user