From owner-cvs-gnu Fri Feb 2 10:17:08 1996 Return-Path: owner-cvs-gnu Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA09391 for cvs-gnu-outgoing; Fri, 2 Feb 1996 10:17:08 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA09375 Fri, 2 Feb 1996 10:16:57 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.6.12/8.6.5) with SMTP id KAA07849; Fri, 2 Feb 1996 10:14:51 -0800 Message-Id: <199602021814.KAA07849@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost didn't use HELO protocol To: Wolfram Schneider cc: CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org Subject: Re: cvs commit: src/gnu/usr.bin/grep Makefile grep.1 grep.c In-reply-to: Your message of "Fri, 02 Feb 1996 18:30:10 +0100." <199602021730.SAA19274@caramba.cs.tu-berlin.de> From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 02 Feb 1996 10:14:50 -0800 Sender: owner-cvs-gnu@FreeBSD.ORG Precedence: bulk >David Greenman writes: >>>wosch 96/02/01 22:45:28 >>> >>> Modified: gnu/usr.bin/grep Makefile grep.1 grep.c >>> Log: >>> recursive grep, enabled with -DHAVE_FTS=1 >> >> Gack...Why? Why don't you just use find/xargs like it was >intended? > >Because it is more comfortable. That's not a very good argument. >Do you use find/xargs for chmod(1) etc? Why FreeBSD has fts(3)? -R shouldn't have been added to chmod(1). For one thing, it then leads to the need for the -H, -L, and -P options. This is escentially completely duplicating functionality that is already in find(1). I think there are times when new options/features should be added to commands - whenever there isn't another way to easily accomplish something. Adding file hierarchy traversal to simple commands isn't one of them. IMO, there's no end to this slippery path. -DG David Greenman Core Team/Principal Architect, The FreeBSD Project