Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle separability
- X-seq: zsh-workers 21191
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: frederik@xxxxxxx
- Subject: Re: zle separability
- Date: Mon, 25 Apr 2005 18:02:49 +0200
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20050425115849.GA17635@xxxxxxxxxxxxxx>
- Mail-followup-to: frederik@xxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050424193737.GA27777@xxxxxxxxxxxxxx> <20050424230816.GA78@DervishD> <20050425075146.GC28168@xxxxxxxxxxxxxx> <20050425104950.GA4108@DervishD> <20050425110410.GD28168@xxxxxxxxxxxxxx> <20050425113925.GA4578@DervishD> <20050425115849.GA17635@xxxxxxxxxxxxxx>
Hi Frederik :)
* Frederik Eaton <frederik@xxxxxxxxxxxxxx> dixit:
> > > > For the rest I don't understand clearly what do you want. If you
> > > > could give me some use cases I can try to tell you ways of achieving
> > > > what you need.
> > > Sort of like preexec, except that it executes not *before* the command
> > > but *instead of* the command. So you could set it to something like
> > > myexec () { "$@" }
> > You can do that using aliases :? Maybe I'm misunderstanding
> > anything?
> If you wanted to use zsh to replace readline, you'd need a way to
> intercept the lines it read as commands, and to get zsh to not execute
> those lines as it normally would...
OK, I understand. You can do that using 'vared'. You have the
full zle power (I think) and the result is stored in a parameter,
never executed unless you want it to.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author