If a program writes to a pipe, it has to watch out for a broken pipe signal (i.e. if the next program in the pipe terminates) and stop writing in this case. It is the "type" program and the editors that show buggy behaviour and need to be fixed.
If a program writes to a pipe, it has to watch out for a broken pipe signal (i.e. if the next program in the pipe terminates) and stop writing in this case. It is the "type" program and the editors that show buggy behaviour and need to be fixed.