Add option to allow empty wildcard #1482

Closed
ghost opened this Issue May 28, 2014 · 1 comment

Comments

Projects
None yet
4 participants
@ghost

ghost commented May 28, 2014

For example, * would return no arguments if the working directory were empty, */ if it contained no subdirectories, etc. It would either be a shell option or a separate syntax.

This is useful for scripting.

@ridiculousfish ridiculousfish added this to the fish-tank milestone Oct 3, 2014

@kballard

This comment has been minimized.

Show comment
Hide comment
@kballard

kballard Oct 14, 2014

Contributor

cab115c changes unmatched wildcard behavior to allow the job to continue running. Wildcards used interactively will still print an error, but the job will proceed and the wildcard will expand to zero arguments. Wildcards used inside scripts or functions will not print an error at all. In both cases, the wildcard expansion will set $status to 124, though this will nearly always get subsequently modified by the job itself.

Contributor

kballard commented Oct 14, 2014

cab115c changes unmatched wildcard behavior to allow the job to continue running. Wildcards used interactively will still print an error, but the job will proceed and the wildcard will expand to zero arguments. Wildcards used inside scripts or functions will not print an error at all. In both cases, the wildcard expansion will set $status to 124, though this will nearly always get subsequently modified by the job itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment