Skip to content

shopt -s nullglob #44

@mikeshaw

Description

@mikeshaw

[bash --version = GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)]
Hi, I'm not sure if this project is still being maintained but I've noticed an issue when testing a script containing:

shopt -s nullglob

Specifically, it breaks bunit.shl - something to do with passing the parameter-array (args[@]) from the assert* functions to __assert and usually fixed with judicious use of quotes.
Happy to concede that this is likely to be a low-frequency problem :-)
I started using the nullglob option after reading this guide to improving Bash scripts

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