diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-15 05:28:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-15 05:28:16 +0000 |
commit | 771bc6ea9de30830b823a9e5d9f832c15d971b42 (patch) | |
tree | 4057ad84737a21907cbff12ae5a80b4ef167b62b /src | |
parent | 634a39aad5803aced2559829b7f3dd24482f91a9 (diff) | |
download | coreutils-771bc6ea9de30830b823a9e5d9f832c15d971b42.tar.xz |
(xfields): Don't interpret a trailing blank as a
delimiter when e.g. -t: was specified. From Tim Smithers.
Diffstat (limited to 'src')
-rw-r--r-- | src/join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/join.c b/src/join.c index e8544fb3a..34bdd1ce1 100644 --- a/src/join.c +++ b/src/join.c @@ -230,7 +230,7 @@ xfields (struct line *line) } } - if (ptr > line->beg && ((tab && ISSPACE (ptr[-1])) || ptr[-1] == tab)) + if (ptr > line->beg && ((!tab && ISSPACE (ptr[-1])) || ptr[-1] == tab)) { /* Add one more (empty) field because the last character of the line was a delimiter. */ |