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
When I run printf "1" | huniq -d ",", it prints 1,. When the input doesn't even contain the delimiter, I'd expect huniq to not change the input. But when the input is something like printf "1," | huniq -d ",", then printing 1, makes sense. I don't imagine it'd be that hard to fix this, but it would be really useful. A flag like --no-trailing-delimiter would also work as well.
The text was updated successfully, but these errors were encountered:
Freaky
added a commit
to Freaky/huniq
that referenced
this issue
Oct 17, 2020
This replaces the custom split_read_zerocopy with bstr's own
minimally-copying record reader, which simplifies the code somewhat
without sacrificing performance in any of my measurements (98% - 115%
observed performance against baseline)
This also removes the sysconf dependency, which caused a compile error
here on FreeBSD.
This also adds a --no-trailing-delimiter flag requested in koraa#14, since
this code needed to be moved anyway.
This replaces the custom split_read_zerocopy with bstr's own
minimally-copying record reader, which simplifies the code somewhat
without sacrificing performance in any of my measurements (98% - 115%
observed performance against baseline)
This also removes the sysconf dependency, which caused a compile error
here on FreeBSD.
This also adds a --no-trailing-delimiter flag requested in #14, since
this code needed to be moved anyway.
When I run
printf "1" | huniq -d ","
, it prints1,
. When the input doesn't even contain the delimiter, I'd expecthuniq
to not change the input. But when the input is something likeprintf "1," | huniq -d ","
, then printing1,
makes sense. I don't imagine it'd be that hard to fix this, but it would be really useful. A flag like--no-trailing-delimiter
would also work as well.The text was updated successfully, but these errors were encountered: