From: Jim Meyering Date: Thu, 22 Feb 1996 00:58:12 +0000 (+0000) Subject: (xfields) [without -t]: Ignore leading blanks. X-Git-Tag: FILEUTILS-3_12j~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756fe67e6043488110c6a8592adfbe0a80d5bbfb;p=thirdparty%2Fcoreutils.git (xfields) [without -t]: Ignore leading blanks. From David Dyck (dcd@tc.fluke.COM). --- diff --git a/src/join.c b/src/join.c index 16446eb583..4c9c71b391 100644 --- a/src/join.c +++ b/src/join.c @@ -246,6 +246,13 @@ xfields (struct line *line) ptr = line->beg; lim = line->lim; + if (!tab) + { + /* Skip leading blanks before the first field. */ + while (ptr < lim && ISSPACE (*ptr)) + ++ptr; + } + for (i = 0; ptr < lim; ++i) { if (tab)