1

In zsh, difference between cat <(cat) vs cat | cat vs cat =(cat)?

view story
linux-howto

http://unix.stackexchange.com – As a zsh/process substitution noob, I expected cat <(cat) and cat | cat to do the same thing: copy lines from stdin to stdout. My understanding was that both would execute a cat in a subshell, redirect the subshell cat's stdout to a temporary named pipe, and then execute another cat in the current shell with its stdin redirected to the pipe. Instead, cat <(cat) lets me type at my terminal, but none of the input lines get copied and ^D fails to signal EOF; cat | cat works as expected though. As a further experiment, I checked if cat =(cat) has similar difficulties as cat <(cat), but (HowTos)