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

Re: PATCH: Re: Files modified after a given date



Zefram wrote:

> Sven Wischnowsky wrote:
> >          Before the string is executed, expansion is performed on it
> >+with the parameter tt($_) being set to the filename currently being
> >+tested.
> 
> Wouldn't it be easier to use if the string were simply evaluated with $_
> appropriately set, without this extra layer of expansion?

;-) I first tried to implement it that way, but then... No, we can't
do it that way because as soon as something is executed $_ gets set
from exec.c to the last command word, as usual. And then it's too late 
to get at the filname.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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