Red Hat Bugzilla – Bug 1314722
cut does a strange cut
Last modified: 2016-03-05 16:22:10 EST
Description of problem:
I found a bug on cut from coreutils that does not output extract fields as expected in specific Fedora rawhide version.
I asked for help on GNU coreutils official bug mailing list. They tell me that Fedora patches GNU coreutils to add i18n support. So I get there to file the bug after failing at finding for similar bugs in this bugzilla.
Version-Release number of selected component (if applicable):
cut version (GNU coreutils) 8.25 in Fedora rawhide
The bug is always reproducible.
Steps to Reproduce:
1. Execute shell command:
echo "https://github.com/dmak/jaxb-xew-plugin/archive/release-1.0.zip|zip|jaxb-xew-plugin-release-1.0|com.github.jaxb-xew-plugin:jaxb-xew-plugin:jar:1.0"|cut -d'|' -f2
I can not reproduce in Fedora 23 (version (GNU coreutils) 8.24).
Thanks for report, yes, this is reproducible with this new patch with implementation of i18n support.
I already fixed one off-by-one issue there, but based on your report it seems there are more such flaws... I'll probably revert to the old implementation next week, as I don't trust the new patch anymore.
Used the old cut i18n support patch again (just separated from the original one), seems to work properly. Building as coreutils-8.25-5.fc25 and coreutils-8.25-5.fc24 in koji.