Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: execute or print one-liner



From Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> Not sure how picky you are about having the arguments expanded, but
> something like the following (by no means fully debugged) would work
> if you don't mind the arguments being at the end.
<snipped>

Yes, that looks pretty good.

I actually prefer a simple replacement w/o any arguments as the whole
point of the exercise is to be able to edit the command in question.

So I adapted your code somewhat and integrated it with the alias
expander I already had (now first checks for a function, then an alias)
so that it will expand both. Thanks, problem solved.

And also thanks to Philippe for his idea.

T




Messages sorted by: Reverse Date, Date, Thread, Author