In article <slrnjs7og3...@anukis.local>,
This error has nothing to do with whether the pager is being used.
When head exits, the read end of the pipe is closed. There are two ways
that a program can deal with writing to a closed pipe. By default, the
OS sends it a SIGPIPE signal, and this causes the program to exit.
Normally, the shell prints a message when a program exits due to a
signal, but this situation is so common and normal that most shells
filter this particular one out.
The other option is to ignore the signal. In this case, the write()
call returns an EPIPE error. Ruby apparently does this, and then
reports the error. See this Stack Overflow thread for a way to program
your ruby script so that it handles the error without a message:
http://stackoverflow.com/questions/2845507/how-do-you-pipe-output-from-a-
ruby-script-to-head-without-getting-a-broken-pip