From owner-cvs-all Fri May 3 10: 5:32 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A9E9A37B405; Fri, 3 May 2002 10:05:25 -0700 (PDT) Received: (from jmallett@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g43H5Pe26546; Fri, 3 May 2002 10:05:25 -0700 (PDT) (envelope-from jmallett) Message-Id: <200205031705.g43H5Pe26546@freefall.freebsd.org> From: "J. Mallett" Date: Fri, 3 May 2002 10:05:25 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/xargs xargs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jmallett 2002/05/03 10:05:25 PDT Modified files: usr.bin/xargs xargs.c Log: Rewrite the loop that handles substitution in the -I case, and try to make it easier to understand. Making it easy to understand isn't all that easy, so litter the code with comments so some other poor soul can come along some day and work on this if they see fit to do so. Avoid calling strlen(3) to check for a nil-string, when we can just check for *str=='\0'. Approved by: src/tools/regression/usr.bin/xargs/ Revision Changes Path 1.25 +75 -15 src/usr.bin/xargs/xargs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message