Skip to content

"glob" examples for include/exclude should be quoted to prevent unexpected behavior #433

@kkmuffme

Description

@kkmuffme

https://developer.wordpress.org/cli/commands/i18n/make-pot/

glob patterns can be used, i.e. --exclude=foo-*.php
Simple glob patterns can be used, i.e. --include=foo-*.php

The shell (tries to) glob this prematurely and this can lead to unexpected results if these exist in the current working directory. To prevent that and get the glob handling by wp cli, it would have to be --include="foo-*.php" ?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions