Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

non-matching glob can create error: posix workaround missing #46

@matu3ba

Description

@matu3ba
# somepath/* evaluates to a literal string if somepath does not exist, which can create an accidental error.
# bash offer nullglob as hacky workaround, but posix shell needs to ensure the path exists

# string/* is used verbatim without match and we dont have nullglob against that
# workaround with (extra case for symlinks)
# [ -e "$file" ] || [ -L "$file" ] || continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions