Make the \c special character in echo suppress the newline too

This commit is contained in:
ridiculousfish
2012-10-17 02:59:43 -07:00
parent 7ee0ce745e
commit 57de1388e8
2 changed files with 3 additions and 2 deletions

View File

@@ -1633,7 +1633,7 @@ static int builtin_echo( parser_t &parser, wchar_t **argv )
}
}
}
if (print_newline)
if (print_newline && continue_output)
stdout_buffer.push_back('\n');
return STATUS_BUILTIN_OK;
}