You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cakebaker
changed the title
csplit: new line added automatically brings to inconsistency with GNU
csplit: new line added automatically leads to inconsistency with GNU
Jan 13, 2025
I found this incosistency with GNU when the following command is executed:
printf "a\nb\nc\nd" | csplit - 2
With GNU implementation, the csplit produces 2 files and in standard output we have:
2
5
On the other hand if I execute the same command with uutils, it produces 2 files and in standard output we have:
2
6
The difference is in the second file because uutils implementation adds automatically a
\n
thed
letter.The text was updated successfully, but these errors were encountered: