From: Jim Meyering Date: Thu, 12 Oct 1995 21:42:52 +0000 (+0000) Subject: (add_field_list): Allow SPACE and TAB as well as `,' as list item separators. X-Git-Tag: v4.5.1~12329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11b87d29cc89469566630cd77c0274aef9d06ff3;p=thirdparty%2Fcoreutils.git (add_field_list): Allow SPACE and TAB as well as `,' as list item separators. --- diff --git a/src/join.c b/src/join.c index 14a3b7a30c..59d240f62f 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);