HIVE-6758 - Beeline doesn't work with -e option when started in background (Mohit Sabharwal via Brock)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1633209 13f79535-47bb-0310-9956-ffa450edef68