Skip to content

Add option to allow empty wildcard #1482

Closed

Description

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.

Activity

  1. added this to the milestone on Oct 3, 2014
  2. lilyball commented on Oct 14, 2014

    @lilyball
    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.

  3. modified the milestones: , on Oct 14, 2014
  4. locked as resolved and limited conversation to collaborators on Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions