From owner-freebsd-current Mon Apr 30 0:56:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id D486637B422 for ; Mon, 30 Apr 2001 00:56:36 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 14u8Xq-0000Wv-00; Mon, 30 Apr 2001 09:56:34 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id JAA22940; Mon, 30 Apr 2001 09:56:31 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 22797; Mon Apr 30 09:56:09 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 14u8XR-0003TX-00; Mon, 30 Apr 2001 09:56:09 +0200 To: Jeroen Ruigrok/Asmodai Cc: current@freebsd.org Subject: Re: cp -u patch In-reply-to: Your message of "Thu, 26 Apr 2001 22:21:32 +0200." <20010426222132.B55566@daemon.ninth-circle.org> Date: Mon, 30 Apr 2001 09:56:09 +0200 Message-ID: <13362.988617369@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 26 Apr 2001 22:21:32 +0200, Jeroen Ruigrok/Asmodai wrote: > Question is, do we want to add this to our cp? Bleh. :-) for i in `find /path/to/src`; do if [ $i -nt /path/to/dst/$i ]; then cp $i /path/to/dst/ fi done And the people who question the efficiency of such shell scripts would do well to 1) Think about the frequency with which these special cases are actually required. 2) Think about the existence of perl(1) and cc(1) on their systems. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message