Skip to content

Glob commands by default #343

@nfischer

Description

@nfischer

It'd be nice if any command could support globs by default. For example:

touch('a.txt');
touch('b.txt');
touch('*.txt'); // this doesn't create a file, it touches the two other files

This has the concern that calling glob.sync() might have a performance hit. However, this would be very consistent with Bash's behavior, which is a win. We might want to limit this to only some commands. For example:

touch('pwd');
which('p*'); // This should technically output the path of `pwd`, but this is not very common
// this would be an example that we might not want to support, for performance reasons

I think this should apply to the majority of commands, however.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions