Instead of tmp
I’d suggest you to start using zsh.
It has exactly that construction you mentioned as nonexisting:
file =(curl http://.../)
(zsh
will put
contents of web page in a temporary file, then insert its name into
the argument list of file
)
…and pretty much more in a similar manner.