in reply to Re^4: Slicing the output of a command
in thread Slicing the output of a command

Windows has no signals, so no SIGPIPE there.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^6: Slicing the output of a command
by BrowserUk (Patriarch) on Jul 10, 2015 at 11:17 UTC

    You're correct, however, marioroy's point holds. When head has read its 4 lines it closes the pipe and effectively prevents cat (or type or copy etc.) from reading further.

    (That doesn't stop it from be a Useless use of cat though.)