From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13956 invoked from network); 25 Aug 2002 22:47:49 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Aug 2002 22:47:49 -0000 Received: (qmail 3877 invoked by alias); 25 Aug 2002 22:47:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5292 Received: (qmail 3862 invoked from network); 25 Aug 2002 22:47:35 -0000 Date: Mon, 26 Aug 2002 00:47:32 +0200 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: how to? Message-ID: <20020826004732.A31790@globnix.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20020823133510.2B8EC5B5@mercea.net> <1020823155954.ZM21819@candle.brasslantern.com> <20020823202218.A13113@globnix.org> <1020824034700.ZM22554@candle.brasslantern.com> <20020824235610.A94@globnix.org> <1020825052726.ZM25655@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1020825052726.ZM25655@candle.brasslantern.com>; from schaefer@brasslantern.com on Sun, Aug 25, 2002 at 05:27:26AM +0000 X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2002-08-25 at 05:27 +0000, Bart Schaefer wrote: > The trouble, of course, is that it's very difficult to generalize, such > that you know which arguments have to be kept with argv[0] on every call > and which can be split across calls. You end up having to "invert" the > syntax, i.e., put the splittable args first, then some flag value (such > as "--"), and finally the command with its fixed args: If it were, say, a glob modifier, then it could be documented to mean "anything not a glob with this modifier will be repeated" -- that should cover the majority of the situations and be a clear enough trade-off. If it's a pre-command modifier, then it would simply be "anything not a glob is repeated". Ie "don't mix specified files and globs which might be repeated". > zargs **/*.c -- ls -l >=20 > That could actually be written as a shell function: That covers most of it, really. I'll give that a go first. Thanks, --=20 Magizine: A weekly read for wise men --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (OpenBSD) iD8DBQE9aV6EfDS04Uzk9lURAotpAJ4i6CqCMccDENrPJvS7fxCtYbi+YQCfZZ4v Y2dq6aRi+cXGDwNnjV5Lepc= =wrCy -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--