projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634a39a
)
(xfields): Don't interpret a trailing blank as a
author
Jim Meyering
<jim@meyering.net>
Sat, 15 May 1999 05:28:16 +0000
(
05:28
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 15 May 1999 05:28:16 +0000
(
05:28
+0000)
delimiter when e.g. -t: was specified. From Tim Smithers.
src/join.c
patch
|
blob
|
history
diff --git
a/src/join.c
b/src/join.c
index e8544fb3a0836b85013c83e45e543524d176e973..34bdd1ce1e322c5742272e472e378a5ef7861c52 100644
(file)
--- 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. */