diff options
author | Matt Kraai | 2001-05-17 01:02:58 +0000 |
---|---|---|
committer | Matt Kraai | 2001-05-17 01:02:58 +0000 |
commit | 233817437ded7a4a7505bc2cdb01eb7c953472c2 (patch) | |
tree | b49802a74fbc044f1f9d1158bda93fa3806e5b58 /sed.c | |
parent | bfae2529b8aa7b12b19da2ec7ad00ba717941074 (diff) | |
download | busybox-233817437ded7a4a7505bc2cdb01eb7c953472c2.zip busybox-233817437ded7a4a7505bc2cdb01eb7c953472c2.tar.gz |
Always print a newline after a matching substitution.
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -577,12 +577,7 @@ static int do_subst_command(const struct sed_cmd *sed_cmd, const char *line) break; } - /* if there's anything left of the line, print it */ - if (*hackline) - puts(hackline); - /* otherwise, we need to print a newline */ - else - printf("\n"); + puts(hackline); /* cleanup */ free(regmatch); |