Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i9L09t04024226 for ; Thu, 21 Oct 2004 00:09:55 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 9F49A53863 for ; Thu, 21 Oct 2004 00:09:56 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKQe8-0005T8-CQ for migo@homemail.com; Wed, 20 Oct 2004 20:17:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKQdj-0005Rn-Tg for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:17:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKQdi-0005RL-SY for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:17:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKQdi-0005RI-O7 for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:17:10 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CKQVc-0000hM-LA for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:08:49 -0400 Received: (qmail 519 invoked by uid 65534); 21 Oct 2004 00:08:36 -0000 Received: from cehteh.homeunix.org (EHLO comet) (217.140.77.75) by mail.gmx.net (mp003) with SMTP; 21 Oct 2004 02:08:36 +0200 X-Authenticated: #192396 Date: Thu, 21 Oct 2004 02:08:31 +0200 From: chth@gmx.net To: John Meinel Subject: Re: [Gnu-arch-users] Re: File naming conventions Message-ID: <20041021020831.2c84cc20@comet> In-Reply-To: <4176F429.3070209@johnmeinel.com> References: <1098074588.29545.40.camel@whiskas.cashpoolcomps.com> <1098092294.5219.8.camel@johannes> <20041018181822.GD9196@puritan.pcp.ath.cx> <8D7869BC-213A-11D9-A63A-000393CFE6B8@spy.net> <1098141434.19575.42.camel@whiskas.cashpoolcomps.com> <20041018233511.GA31642@fencepost> <1098156854.19575.65.camel@whiskas.cashpoolcomps.com> <1098163496.19575.134.camel@whiskas.cashpoolcomps.com> <20041019060152.GC18852@wisq.net> <1098311382.11967.35.camel@nemesis.xlii.org> <1098313564.5336.29.camel@whiskas.cashpoolcomps.com> <4176F429.3070209@johnmeinel.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: GNU Arch Users , Zenaan Harkness X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 944 Lines: 36 > There is the command tla escape (and tla escape --unescaped). But they > > only read a single command line argument. So you can't do: > > tla inventory --source | tla escape --unescaped | xargs chmod 644 > and you can't do > tla inventory --source | xargs tla escape --unescaped | xargs chmod > 644 Try: tla inventory --source |\ while read line; do chmod 644 "$(tla escape --unescaped "$line")"; done the stream-mode was not added to tla escape because it wont handle newlines in filenames and wont work with leading/trailing whitespaces. tla inventory --source --unescaped |\ while read line; do chmod 644 "$line"; done will work if you are sure that there are no newlines in filenames. Christian _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/