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
-
Radar URL:
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