summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-12 21:42:52 +0000
committerJim Meyering <jim@meyering.net>1995-10-12 21:42:52 +0000
commit11b87d29cc89469566630cd77c0274aef9d06ff3 (patch)
treee12e1a9eeacc7f06d75597cf16740eca8cc941af
parentbc7210e5634b85d02f54e9bcfc16e0a0f3644859 (diff)
downloadcoreutils-11b87d29cc89469566630cd77c0274aef9d06ff3.tar.xz
(add_field_list): Allow SPACE and TAB as well as `,' as list item separators.
-rw-r--r--src/join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/join.c b/src/join.c
index 14a3b7a30..59d240f62 100644
--- a/src/join.c
+++ b/src/join.c
@@ -661,7 +661,7 @@ add_field_list (const char *c_str)
int file_index, field_index;
char *spec_item = p;
- p = strchr (p, ',');
+ p = strpbrk (p, ", \t");
if (p)
*p++ = 0;
invalid = decode_field_spec (spec_item, &file_index, &field_index);