coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

cut: Fix cut when lines dont end with specified delim

Open andreistan26 opened this issue 1 year ago • 1 comments

issue: https://github.com/uutils/coreutils/issues/5795

Using the default line terminator \n and without the additional option --only-delimited, cut should print the lines that do not contain delimiters only when they are ended with the specified line terminator(the default \n in this case or null-terminated if --zero-terminated is enabled).

In the given input the last line was not ended in a \n so it shouldn't have been printed.

andreistan26 avatar Jan 15 '24 14:01 andreistan26

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/mv/mv-n is no longer failing!
Congrats! The gnu test tests/mv/update is no longer failing!

github-actions[bot] avatar Sep 14 '24 08:09 github-actions[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Dec 02 '24 18:12 github-actions[bot]