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

Re: Getting the name of zsh-generated temp file?



Zefram <zefram@xxxxxxxx> writes:

> Lloyd Zusman wrote:
>>Within a zsh script, is there any way that I can get the name of the
>>temporary file generated by the =(...) construct?
>
> $ foo==(echo bar)
> $ echo $foo
> /tmp/zshp8oWrV
> $ cat $foo
> bar
>
> -zefram

Thanks.  That works great.  And it's so obvious ... in hindsight. :)

-- 
 Lloyd Zusman
 ljz@xxxxxxxxxx



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