From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20216 invoked by alias); 4 Aug 2010 07:23:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15245 Received: (qmail 3662 invoked from network); 4 Aug 2010 07:23:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eIiIaeokvRQY9b/yvX3VoApOm6ooz+6YzKMpDRj7w0g=; b=hBHzqkXew4rZ5up70804Fp9e9cftJAZ58Z2WP3wjbmFZtlRPH+H8hCLJOmwFvLdX0g ZpiNJbJeSgx7dc9IE+nw5fErokAl5Vd+A2YVk29l6uusSN9VTTENxOCrNI7W8oMehYOo BL9C3kLRWvTaF0SNQ5clYL0lqihNcbjoz90lM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=r6dn/D19J3dHmW6UQ/aMko0WqHGjY6STujsHcyQq/ClKCoIutBvrR+zzdzuH6Ftw5E jp8rRq3b0JhP8rhMASb78nbgWEov+ag+bKvjC+EsXUBjm1Dr73Lwt1nDUUbFN1OFq02F 0zyAEPL5NqkdsM5XVltYd5VPBi9Xh76YjaAGQ= MIME-Version: 1.0 In-Reply-To: <20100803191028.GA16019@trustfood.org> References: <20100803191028.GA16019@trustfood.org> Date: Wed, 4 Aug 2010 04:22:56 -0300 Message-ID: Subject: Re: alias -g From: Kazuo Teramoto To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Aug 3, 2010 at 4:10 PM, Eric Smith wrote: > So when I go > $ echo een vreemde taal T [...] > How do I drop the `echo` with alias -g or something similiar > so all I need to do is go: > $ een vreemde taal T Uhh, I think this can be done for example creating a new autocd like option, but you gonna need to wait for a better zsh user then me to show you the code. But, I think that what you like to do come at a highly price. Because you loose the very definition of valid command. For example you can forget that 'rm' is a valid command and type $ rm important thing T And get 'important' and 'thing' removed. Ok, rm is not a valid world in a lot of languages, but what about sleep, wait? Or worse 'unlink' it is a valid world and can remove your files like rm. This too can be solved, for example, the new autocd-like function can check if the last arg is T not if the first arg is a valid command, but I still think that this can be a shoot in the foot some time. And for me $ T een vreemde is more natural than your syntax, because I read it as "translate 'een vreemde'". I'm prefer postfix for calculators but for this the prefix notation is more logical for me. Regards, Kazuo --=20 =C2=ABDans la vie, rien n'est =C3=A0 craindre, tout est =C3=A0 comprendre= =C2=BB Marie Sklodowska Curie.