When the rev(1) is executed twice outcome is expected to be exactly what
it was originally. That includes not adding new line at the end of the
output. The oneliner below demonstrates earlier issue.
$ printf "abc\n123" | rev | rev
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
53bbf0d98205319cee2ba589e205c68b -
-b407c257ed73b43cb992e778f925f7a3 -
+35484965b7a2fd45a471c0d80cb9752c -
+cba
+321
\ No newline at end of file
for I in {0..512}; do printf "%s " {a..z}; done | \
$TS_CMD_REV | md5sum >> $TS_OUTPUT 2>&1
+printf "abc\n123" | $TS_CMD_REV >> $TS_OUTPUT 2>&1
+
ts_finalize
if (*t != 0)
putwchar(*t);
}
- putwchar('\n');
+ if (!feof(fp))
+ putwchar('\n');
}
fflush(fp);