Using the Unix Chainsaw: Named Pipes and Process Substitution(vincebuffalo.org) |
Using the Unix Chainsaw: Named Pipes and Process Substitution(vincebuffalo.org) |
$ echo <(echo test)
/dev/fd/63
$ cat <(echo test)
testSince echo test prints "test" to standard out, in your second example this is piped to the file descriptor, which cat then reads from (printing "test").