implement basic shell functionality: <, >, |.