Uploaded image for project: 'Swift'
  1. Swift
  2. SR-8828

Swift arguments file doesn't support sources with spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
    • Environment:

      Apple Swift version 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)
      Target: x86_64-apple-darwin17.7.0

      Description

      If you provide Swift with a file to use as the arguments, file paths with spaces are not correctly handled. Example:

      touch "foo bar.swift"
      echo "foo bar.swift" > arguments.txt
      swiftc @arguments.txt
      <unknown>:0: error: no such file or directory: 'bar.swift'
      

      I assume since there is an argument per line these files should correctly handle spaces?

      Original change https://github.com/apple/swift/pull/16362

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              keith Keith Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: