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

Redirect a specific file descriptor to a pipe?



Hi,

It's easy to create an arbitrary file descriptor and redirect it to a
file, e.g. 3>foo. Is there any way to redirect it to a pipe instead of
a file?

For example (assuming Linux),

strace -o /dev/fd/3 ./a.out > out.log 2> err.log 3>XXX

Instead of file XXX, I'd like to send fd 3 to |less. Is it possible?

Many thanks.



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