Suppose I have have a program P which has a filename as argument. For example
P file
reads the file "file" and does something with it.
Now sometimes the content of "file" is very small, e.g. just one line. So instead of creating a file f with that line and calling
P f
I want to give the content of line directly as an argument to P. I don't want to write a wrapper for P.
Is it possible to do this in zsh? How would be the syntax?