coreutils/src
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
..
bin refactor/uucore ~ correct implementation of executable!() for multicall 2021-08-14 14:01:34 +02:00
uu tac: correct behavior of -b option (#2523) 2021-08-22 21:01:17 +02:00
uucore Merge pull request #2471 from miDeb/real-exe-name 2021-08-22 16:55:06 +02:00
uucore_procs refactor/uucore ~ make util_name and execution_phrase functions 2021-08-14 17:55:18 +02:00