From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5845 invoked from network); 11 Sep 2006 19:03:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Sep 2006 19:03:13 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98949 invoked from network); 11 Sep 2006 19:03:04 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Sep 2006 19:03:04 -0000 Received: (qmail 15011 invoked by alias); 11 Sep 2006 19:02:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10705 Received: (qmail 15000 invoked from network); 11 Sep 2006 19:02:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Sep 2006 19:02:50 -0000 Received: (qmail 97533 invoked from network); 11 Sep 2006 19:02:50 -0000 Received: from zoidberg.org (HELO cthulhu.zoidberg.org) (213.133.99.5) by a.mx.sunsite.dk with SMTP; 11 Sep 2006 19:02:49 -0000 Received: from kos-mos (xdsl-87-78-127-26.netcologne.de [::ffff:87.78.127.26]) (IDENT: unknown, AUTH: PLAIN tobias, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by cthulhu.zoidberg.org with esmtp; Mon, 11 Sep 2006 21:02:48 +0200 id 0300BF02.4505B2D8.00001631 Date: Mon, 11 Sep 2006 21:02:46 +0200 From: Tobias Gruetzmacher To: zsh-users@sunsite.dk Subject: Re: alias -- do not pass args Message-ID: <20060911190245.GA19657@portfolio16.de> Mail-Followup-To: zsh-users@sunsite.dk References: <20060911185045.GA15092@localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_cthulhu.zoidberg.org-5681-1158001368-0001-2" Content-Disposition: inline In-Reply-To: <20060911185045.GA15092@localdomain> User-Agent: Mutt/1.5.13 (2006-08-11) This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_cthulhu.zoidberg.org-5681-1158001368-0001-2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 11, 2006 at 09:50:45PM +0300, Roman Cheplyaka wrote: > I want to define alias which would /not/ pass its args to program. > E.g. > $ alias foo=3D'echo lol' > $ foo a b > should just print lol, not "lol a b". How can I do this? Maybe end the alias with a command that swallows its arguments? Like alias foo=3D'echo lol; true' or even alias foo=3D'echo lol && true' to get the correct exit status. Greetings, Tobi --=20 GPG-Key 0xE2BEA341 - signed/encrypted mail preferred My, oh so small, homepage: http://portfolio16.de/ http://www.fli4l.de/ - ISDN- & DSL-Router on one disk! Registered FLI4L-User #00000003 --=_cthulhu.zoidberg.org-5681-1158001368-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFBbLVGf7YPOK+o0ERAnFDAJ9Ey9JcI+WEWzJiRZVSVJSjrxOu2QCgzlMo xk26KyE82aZ9XHo2Z5esPH8= =vA86 -----END PGP SIGNATURE----- --=_cthulhu.zoidberg.org-5681-1158001368-0001-2--