Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reinstate failglob behaviour for most commands #2719
Expand globs to zero arguments (nullglob) only for set, for and count.
The warning about failing globs, and setting the accompanying $status,
It is assumed that the above commands are the common cases where
The previous behaviour was actually all nullglob (since commit
Without running this:
I think I'd be okay with this behavior (it's basically what I suggested).
At the very least you'll want to look at test5, which fails because you also print the error message for
Otherwise it's worth discussing, especially:
Of course both of these could be left out - we could tell people to use variables if they want that.
And one thing I'll have to test is if the error message is suppressable.