Using the Unix Chainsaw: Named Pipes and Process Substitution
vincebuffalo.org
Using the Unix Chainsaw: Named Pipes and Process Substitution
1–5 of 5 posts
Re: Using the Unix Chainsaw: Named Pipes and Process Substitution
#2[deleted]
Re: Using the Unix Chainsaw: Named Pipes and Process Substitution
#3[deleted]
[deleted]
Re: Using the Unix Chainsaw: Named Pipes and Process Substitution
#4Awesome - I never new about process substitution. I wanted to convince myself I knew what it was doing, so I started kicking this around a bit. I expected the first command to output "test." I'm not sure I can explain these results:
$ echo Re: Using the Unix Chainsaw: Named Pipes and Process Substitution
#5Awesome - I never new about process substitution. I wanted to convince myself I knew what it was doing, so I started kicking this around a bit. I expected the first command to output "test." I'm not sure I can explain these results: $ echo
Since 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").