coreutils/tests/fixtures/tac
jfinkels 4ef35d4a96
tac: correct behavior of -b option (#2523)
* tac: correct behavior of -b option

Correct the behavior of `tac -b` to match that of GNU coreutils
`tac`. Specifically, this changes `tac -b` to assume *leading* line
separators instead of the default *trailing* line separators.

Before this commit, the (incorrect) behavior was

    $ printf "/abc/def" | tac -b -s "/"
    def/abc/

After this commit, the behavior is

    $ printf "/abc/def" | tac -b -s "/"
    /def/abc

Fixes #2262.

* fixup! tac: correct behavior of -b option

* fixup! tac: correct behavior of -b option

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2021-08-22 21:01:17 +02:00
..
delimited_primes.expected rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
delimited_primes.txt rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
delimited_primes_before.expected tac: correct behavior of -b option (#2523) 2021-08-22 21:01:17 +02:00
prime_per_line.expected rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
prime_per_line.txt rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00