From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10666 invoked from network); 10 Oct 2002 20:02:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Oct 2002 20:02:27 -0000 Received: (qmail 15263 invoked by alias); 10 Oct 2002 20:02:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17803 Received: (qmail 15240 invoked from network); 10 Oct 2002 20:02:16 -0000 Sender: jprice@redfish.gatech.edu To: DervishD Cc: Zsh Subject: Re: Recursion and shell functions References: <20021010194154.GA10963@DervishD> From: Jason Price Date: 10 Oct 2002 16:02:15 -0400 In-Reply-To: <20021010194154.GA10963@DervishD> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii DervishD writes: > First of all, please excuse this a-bit-off-topic question, but I > need to know if a feature available in zsh is portable. You could re-invent the wheel, but why? (cd ; tar -cpvf - .) | ( cd ; tar -xpf -) Or if you want to preserve things, I imagine a similar incantation with rsync will work just as well. The above works amazingly well with ssh too: cd ; tar -cpvf - . | ssh -l "cd dir ; tar -xpf -" Rsync is good, but in some comparisons tar over rsh worked better for large directories with lots of files in the 'copy everything first time' case. In the 'just the delta's needed' case, rsync wins. Jason