]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cut: improve error reporting
authorCojocaru Alexandru <xojoc@gmx.com>
Wed, 5 Dec 2012 13:13:51 +0000 (13:13 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 6 Dec 2012 09:37:16 +0000 (09:37 +0000)
commitdd3193cd959684837b50d1aea8931a4c62ce2673
tree4905cdbc69e76b849464b0c3c0592bc804768f0f
parentdf9065e552a17ab86b28dd7165678d15592015f8
cut: improve error reporting

* src/cut.c (main): Treat a NUL delimiter (-d '') consistently
with non NUL delimiters, and disallow such a delimiter option,
unless a field is also specified.
(set_fields): Provide a more accurate error message when
a given list is invalid.
* tests/misc/cut.pl: Add a test case.
src/cut.c
tests/misc/cut.pl