aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-01-22 01:34:07 +0000
committerPádraig Brady <P@draigBrady.com>2013-01-26 02:31:59 +0000
commitd302aed182d625281fba87aca3cb513882aa967b (patch)
treeba7fffb25d51deb1632cebc17456152cd047d329 /scripts/git-hooks/commit-msg
parentcut: with -f, process each line independently (diff)
downloadcoreutils-d302aed182d625281fba87aca3cb513882aa967b.tar.gz
coreutils-d302aed182d625281fba87aca3cb513882aa967b.zip
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 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions