Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i9L0naBO013643 for ; Thu, 21 Oct 2004 00:49:37 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id 3295476F9C for ; Thu, 21 Oct 2004 00:49:39 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKRGY-0002GY-Hi for migo@homemail.com; Wed, 20 Oct 2004 20:57:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKRGC-0002GR-Vc for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:56:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKRGC-0002GF-If for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:56:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKRGC-0002GC-GL for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:56:56 -0400 Received: from [144.140.71.12] (helo=gizmo02ps.bigpond.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1CKR8Z-0006i6-Tt for gnu-arch-users@gnu.org; Wed, 20 Oct 2004 20:49:05 -0400 Received: (qmail 15597 invoked from network); 21 Oct 2004 00:49:02 -0000 Received: from unknown (HELO psmam11.bigpond.com) (144.135.25.100) by gizmo02ps.bigpond.com with SMTP; 21 Oct 2004 00:49:02 -0000 Received: from cpe-144-132-220-21.nsw.bigpond.net.au ([144.132.220.21]) by psmam11.bigpond.com(MAM REL_3_4_2a 225/118154527) with SMTP id 118154527; Thu, 21 Oct 2004 10:49:02 +1000 Received: by freedbms.net (Postfix, from userid 1000) id 21BDC3C079; Thu, 21 Oct 2004 10:49:33 +1000 Subject: Re: [Gnu-arch-users] Re: File naming conventions From: Zenaan Harkness To: GNU Arch Users In-Reply-To: <20041021020831.2c84cc20@comet> 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> <20041021020831.2c84cc20@comet> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1098319773.5336.50.camel@whiskas.cashpoolcomps.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 21 Oct 2004 10:49:33 +1000 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: 1555 Lines: 54 On Thu, 2004-10-21 at 10:08, chth@gmx.net wrote: > > 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. The point is, you're now basically at the bash script level. This is not something I would feel comfortable typing in at the command line at random points in the future. If it works, that's certainly useful though... in which case, I'd suggest we're back to the following: tla chmod tla ln ... since the alternative is things like tla[-]chmod, which every man and his dog will write, and you start to go "why isn't this default". And the default convention for tla proper is a Unixy sub-command space. cheers zen _______________________________________________ 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/