From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27862 invoked from network); 24 Jul 2004 12:45:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Jul 2004 12:45:09 -0000 Received: (qmail 12453 invoked from network); 24 Jul 2004 12:45:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jul 2004 12:45:03 -0000 Received: (qmail 13198 invoked by alias); 24 Jul 2004 12:44:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7758 Received: (qmail 13189 invoked from network); 24 Jul 2004 12:44:20 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 24 Jul 2004 12:44:20 -0000 Received: (qmail 10925 invoked from network); 24 Jul 2004 12:42:21 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by a.mx.sunsite.dk with SMTP; 24 Jul 2004 12:42:19 -0000 Received: (qmail 6946 invoked by uid 8); 24 Jul 2004 12:42:16 -0000 To: zsh-users@sunsite.dk Path: not-for-mail From: Geoff Wing X-Newsgroups: lists.zsh.users Subject: Re: zsh tips plea (tip of the day) Date: Sat, 24 Jul 2004 12:42:16 +0000 (UTC) Organization: PrimeNet Computer Consultants Message-ID: References: <20040724042714.H326@willy_wonka> <20040724112351.GW7828@ay.vinc17.org> Reply-To: mason@primenet.com.au NNTP-Posting-Host: sparkles.primenet.com.au X-Trace: coral.primenet.com.au 1090672936 1441 203.43.15.10 (24 Jul 2004 12:42:16 GMT) X-Complaints-To: usenet@coral.primenet.com.au NNTP-Posting-Date: Sat, 24 Jul 2004 12:42:16 +0000 (UTC) User-Agent: slrn/0.9.8.0 (NetBSD) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Vincent Lefevre typed: : On 2004-07-24 04:32:28 -0400, Atom 'Smasher' wrote: :> i thought that's what xargs is for... :> $ echo {1..30000} | xargs ls : Except that : * xargs may be insecure, unless the option -0 is used; It's not about insecurity as much as that it doesn't do what you want or expect, necessarily. : * xargs can't always be used for every command; : * this requires more things to type (not important for scripts, : but this may be annoying when typing commands interactively). % print -N {1..30000} | xargs -0 ls That doesn't do exactly the same thing but that's what you've got. Live with it. I use it (something like it - ``**/*(.)'') nearly every day. It's the same with any Unix-like system. Everything has limitations. It's still a lot better/easier than using find or similar. Regards, Geoff