zsh-users
 help / color / mirror / code / Atom feed
From: Kazuo Teramoto <kaz.rag@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: alias -g
Date: Wed, 4 Aug 2010 04:22:56 -0300	[thread overview]
Message-ID: <AANLkTinkSYxM1k_ZJ+9fpWHa2DOgf7Rxaqx=bzN-Ff+2@mail.gmail.com> (raw)
In-Reply-To: <20100803191028.GA16019@trustfood.org>

On Tue, Aug 3, 2010 at 4:10 PM, Eric Smith <es@fruitcom.com> 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

-- 
«Dans la vie, rien n'est à craindre, tout est à comprendre»
Marie Sklodowska Curie.


  parent reply	other threads:[~2010-08-04  7:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 19:10 Eric Smith
2010-08-03 19:37 ` Alexey I. Froloff
2010-08-03 20:02   ` Eric Smith
2010-08-04 15:31     ` Bart Schaefer
2010-08-06 11:33       ` alias -g -> SOLVED Eric Smith
2010-08-04  7:22 ` Kazuo Teramoto [this message]
2010-08-04  7:24   ` alias -g Kazuo Teramoto

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='AANLkTinkSYxM1k_ZJ+9fpWHa2DOgf7Rxaqx=bzN-Ff+2@mail.gmail.com' \
    --to=kaz.rag@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).