**Describe the bug** cabal's test-options botches the arguments before it passes them to the test executable **To Reproduce** Clone cabal repo, and run the following command ``` cabal v2-test integration-tests2 --test-options '-p "find root"' ``` it should work fine, however the below command doesn't ``` cabal v2-test integration-tests2 --test-options "-p 'find root'" ``` **Expected behavior** Both methods of passing the arguments should work. **System information** - Operating system: nixos - `cabal`, `ghc` versions: 3.6.2.0, 8.10.7 **Additional context** Did some investigation, and that the bug is in the `splitArgs` function ```haskell > splitArgs "-p 'find root'" ["-p","'find","root'"] ```
Activity
Mikolaj commentedon Apr 8, 2022
This is a terrible user experience, so very important IMHO.
Fix splitArgs function.
Fix splitArgs function.
Fix splitArgs function.
Fix splitArgs function.
Fix splitArgs function.
Fix splitArgs function.