Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20613

Double quotes in Windows batch script

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2, 2.2.0, 2.3.0
    • Windows
    • None

    Description

      This is a new issue in version 2.1.1. This problem was not present in 2.1.0.

      In bin/spark-class2.cmd, both the line that sets the RUNNER and the like that invokes the RUNNER have quotes. This opens and closes the quote immediately, producing something like

      RUNNER=""C:\Program Files (x86)\Java\jre1.8.0_131\bin\java""
             ab          c
      

      The quote above a opens the quote. The quote above b closes the quote. This creates a space at position c, which is invalid syntax.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jarrettmeyer Jarrett Meyer
            jarrettmeyer Jarrett Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment