added support for using | and < together; can now quit with Ctrl-D