diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-01-22 01:34:07 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-01-26 02:31:59 +0000 |
commit | d302aed182d625281fba87aca3cb513882aa967b (patch) | |
tree | ba7fffb25d51deb1632cebc17456152cd047d329 /src/extract-magic | |
parent | 51ce0bf8440e18de34586003b1a5d7f568fbf636 (diff) | |
download | coreutils-d302aed182d625281fba87aca3cb513882aa967b.tar.xz |
cut: fix -f to work with the -d$'\n' edge case
* src/cut.c (cut_fields): Handle the edge case where '\n' is
the delimiter, which could be used for example to suppress
the last line if it doesn't contain a '\n'.
* test/misc/cut.pl: Add tests for this edge case.
Diffstat (limited to 'src/extract-magic')
0 files changed, 0 insertions, 0 deletions