private void processLineExitOnFailure(String command) throws IOException {
    try {
      processLine(command);
    } catch (CommandProcessorException e) {
      System.exit(e.getResponseCode());
    }
  }
Split the line by semicolon by ignoring the ones in the single/double quotes.
cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java