coreutils/tests
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
..
benches/factor refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
by-util tac: correct behavior of -b option (#2523) 2021-08-22 21:01:17 +02:00
common tests ~ fix tests for new execution_phrase!() and usage phrasing 2021-08-14 14:01:34 +02:00
fixtures tac: correct behavior of -b option (#2523) 2021-08-22 21:01:17 +02:00
test_util_name.rs test_util_name: symlink the xecutable instead of copying 2021-08-20 00:20:56 +02:00
tests.rs tests ~ use build.rs build list of test_UTIL module files 2020-06-02 12:17:30 -05:00