Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261415AbVDIXZ2 (ORCPT ); Sat, 9 Apr 2005 19:25:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261425AbVDIXXp (ORCPT ); Sat, 9 Apr 2005 19:23:45 -0400 Received: from cmailg1.svr.pol.co.uk ([195.92.195.171]:53511 "EHLO cmailg1.svr.pol.co.uk") by vger.kernel.org with ESMTP id S261415AbVDIXV4 (ORCPT ); Sat, 9 Apr 2005 19:21:56 -0400 Message-Id: <200504092321.j39NLk003976@blake.inputplus.co.uk> To: Linus Torvalds cc: Petr Baudis , "Randy.Dunlap" , Ross Vandegrift , Ingo Molnar , Dave Jones , Kernel Mailing List Subject: Re: more git updates.. In-Reply-To: Date: Sun, 10 Apr 2005 00:21:46 +0100 From: Ralph Corderoy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 27 Hi Linus, > Btw, the NUL-termination makes this really easy to use even in shell > scripts, ie you can do > > diff-tree | xargs -0 do_something > > and you'll get each line as one nice argument to your "do_something" > script. So a do_diff could be based on something like > > #!/bin/sh Watch out for when xargs invokes do_something more than once and the `<' is parsed by a different one than the `>'. A `while read ...; do ... done' would avoid that, but wouldn't like the NULs instead of LFs. Cheers, Ralph. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/