Skip to content

test task is never run when using mix do and space #5551

@vic

Description

@vic

Bug

The test task is never run if followed by space

Environment

  • Elixir & Erlang versions (elixir -v): Elixir 1.4.0-rc.1 (16a14c1)
  • Operating system: OSX Sierra

Current behavior

When using mix do to execute two tasks test and clean and an space character is placed before the comma, tests are never run and the shell just hangs.

mix new foo
cd foo
env MIX_ENV=test mix do test , clean
Compiling 1 file (.ex)
Generated foo app
# *hangs forever tests are never run*

Expected behavior

Expected test task to run.
Expected mix do test , clean to be equivalent to mix do test, clean

Any other task works correctly even when followed by space, for example, this works:

env MIX_ENV=test mix do clean , test

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