Bravely stop appending a newline in reader_shell_test

This newline apparently dates back to when we required all statements to
be terminated; but our AST no longer requires that so we can remove
this. No functional change expected here.
This commit is contained in:
ridiculousfish 2022-08-07 14:03:33 -07:00
parent 1dff1cb2c4
commit e0a4d49ef3

View File

@ -2646,12 +2646,7 @@ static eval_res_t reader_run_command(parser_t &parser, const wcstring &cmd) {
return eval_res;
}
static parser_test_error_bits_t reader_shell_test(const parser_t &parser, const wcstring &b) {
wcstring bstr = b;
// Append a newline, to act as a statement terminator.
bstr.push_back(L'\n');
static parser_test_error_bits_t reader_shell_test(const parser_t &parser, const wcstring &bstr) {
parse_error_list_t errors;
parser_test_error_bits_t res =
parse_util_detect_errors(bstr, &errors, true /* do accept incomplete */);