From owner-freebsd-current Thu Apr 19 12:39:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from bsdone.bsdwins.com (www.bsdwins.com [192.58.184.33]) by hub.freebsd.org (Postfix) with ESMTP id 0DF3B37B424 for ; Thu, 19 Apr 2001 12:39:15 -0700 (PDT) (envelope-from jwd@bsdwins.com) Received: (from jwd@localhost) by bsdone.bsdwins.com (8.11.1/8.11.0) id f3JJdEm75017 for freebsd-current@freebsd.org; Thu, 19 Apr 2001 15:39:14 -0400 (EDT) (envelope-from jwd) Date: Thu, 19 Apr 2001 15:39:14 -0400 From: "John W. De Boskey" To: Current List Subject: cp -d dir patch for review Message-ID: <20010419153913.A74863@bsdwins.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have added a -d dir option to cp. This allows the target directory to be specified at the head of the command line instead of the tail. This makes cp work much more nicely with tools like xargs... (allowing for major performance improvements over inline shell loops). The patch is at: http://www.freebsd.org/~jwd/cp-d.patch which allows: cp -d target_directory source1 source2 ... sourceN and/or cat big_file_list | xargs cp -d target_directory The changes required to do this turned out to be simple. Please let me know if you have any comments. Note: I do not have a man page update yet. Working with man pages on current appears to be broken. nroff/groff are also producing bad output on freefall.. Thanks, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message