]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(add_field_list): Allow SPACE and TAB as well as `,' as list item separators.
authorJim Meyering <jim@meyering.net>
Thu, 12 Oct 1995 21:42:52 +0000 (21:42 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 12 Oct 1995 21:42:52 +0000 (21:42 +0000)
src/join.c

index 14a3b7a30cdc837aab7749da2a69e4ccfc3c5a7f..59d240f62f4491ba8862f750a8cca1beb478eaae 100644 (file)
@@ -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);