zsh-users
 help / color / mirror / code / Atom feed
From: Geoff Wing <mason@primenet.com.au>
To: zsh-users@sunsite.dk
Subject: Re: zsh tips plea (tip of the day)
Date: Sat, 24 Jul 2004 12:42:16 +0000 (UTC)	[thread overview]
Message-ID: <slrncg4m98.4rs.mason@g.primenet.com.au> (raw)
In-Reply-To: <20040724112351.GW7828@ay.vinc17.org>

Vincent Lefevre <vincent@vinc17.org> 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


  reply	other threads:[~2004-07-24 12:45 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 11:12 zzapper
2004-07-23 11:24 ` Peter Stephenson
2004-07-23 11:39   ` Joakim Ryden
2004-07-23 22:55     ` Aaron Davies
2004-07-24  7:22       ` Vincent Lefevre
2004-07-24  8:00         ` Atom 'Smasher'
2004-07-24  8:10           ` Vincent Lefevre
2004-07-24  8:32             ` Atom 'Smasher'
2004-07-24 11:23               ` Vincent Lefevre
2004-07-24 12:42                 ` Geoff Wing [this message]
2004-07-25  0:46                   ` Vincent Lefevre
2004-07-25  4:54                     ` xargs (Re: zsh tips plea (tip of the day)) Bart Schaefer
2004-07-24 17:47                 ` zsh tips plea (tip of the day) Atom 'Smasher'
2004-07-24 15:52         ` Aaron Davies
2004-07-23 12:49   ` Björn Lindström
2004-07-28 15:18     ` Felix Rosencrantz
2004-07-28 16:17       ` DervishD
2004-07-28 18:03         ` Björn Lindström
2004-07-23 16:55 ` Atom 'Smasher'
2004-07-23 20:04   ` Vincent Lefevre
2004-07-23 20:23     ` Philippe Troin
2004-07-23 20:26       ` Vincent Lefevre
2004-07-23 21:37         ` Philippe Troin
2004-07-23 21:50           ` Vincent Lefevre
2004-07-23 22:02             ` Dan Nelson
2004-07-24  7:14               ` Vincent Lefevre
2004-07-28 12:08   ` Vincent Lefevre
2004-07-24 16:42 ` zzapper
2004-07-24 18:44   ` Bart Schaefer
2004-07-24 22:45     ` zzapper
2004-07-25 10:41       ` zzapper
2004-07-25 10:53         ` zzapper
2004-07-26 14:13 ` Peter Stephenson
2004-07-26 17:01   ` Bart Schaefer
2004-07-29 15:24 ` zzapper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrncg4m98.4rs.mason@g.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).