Skip to content

Using --test-option with an argument starting with @ prints ? to the screen #11393

@brandonchinn178

Description

@brandonchinn178

Describe the bug

When I do cabal test --test-options '@foo', cabal prints out a question mark:

$ cabal test --test-options '@foo'
"?"
Build profile: -w ghc-9.12.2 -O1

Probably comes from here, although I have no idea why it's printing out a question mark:

expand n dir arg@('@' : f) = readRecursively n (dir </> f) `catchIOError` const (print "?" >> return [arg])

  1. Why is a question mark being printed out?
  2. Why is this running on --test-options?

To Reproduce

Expected behavior

System information

  • Operating system
  • cabal, ghc versions

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions