Skip to content

Documentation around glob patterns and shell expansion #3136

@boneskull

Description

@boneskull

From @boneskull on July 12, 2015 4:15

from #1115

Not sure if it is needed, but it may be worth noting that due to shell expansion, glob patterns should be wrapped in double quotes on unix shells.

mocha -w -r should "test/**/*.js"

Using that would render the --recursive flag useless.

Copied from original issue: mochajs/old-mochajs-site#8

UPDATE Double quotes for portability--don't want to say single quotes in one place and double quotes in the other, so DOUBLE QUOTES (single quotes fine on *nix if you don't want variable expansion to happen, but let's assume there are no variables in use)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions