diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-10-17 02:59:43 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-10-17 02:59:43 -0700 |
commit | 57de1388e8e8cce94331d000b2083425dde45bc2 (patch) | |
tree | 4e769b701fffb0f886b7332f40fa731b1c208bee /builtin.cpp | |
parent | 7ee0ce745e7ed4b7672decc8bd18d2057cd47d82 (diff) |
Make the \c special character in echo suppress the newline too
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp index fa6ce1ee..e5e6f86f 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -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; } |