Skip to content

“swift ./-” does the same as “swift -” #1541

Open
@Frizlab

Description

@Frizlab

Description

swift ./- should try and read the file named - in the current folder. Instead it reads from stdin, just like swift -.

Reproduction

  1. Create a swift file name - in your cwd;
  2. Run swift ./-

Expected behavior

Swift should execute the file just created.

Environment

swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions