fixing shell() so that commands given on stdin are shown in error logs

Please comment.