diff --git a/man7/glob.7 b/man7/glob.7 index dac9975c7..f809e177f 100644 --- a/man7/glob.7 +++ b/man7/glob.7 @@ -105,10 +105,11 @@ into the list of matching pathnames" was the original UNIX definition. It allowed one to have patterns that expand into an empty list, as in -.br + .nf xv \-wait 0 *.gif *.jpg .fi + where perhaps no *.gif files are present (and this is not an error). However, POSIX requires that a wildcard pattern is left @@ -123,15 +124,17 @@ one can force the classical behavior using this command: (Similar problems occur elsewhere. E.g., where old scripts have -.br + .nf rm \`find . \-name "*~"\` .fi + new scripts require -.br + .nf rm \-f nosuchfile \`find . \-name "*~"\` .fi + to avoid error messages from .I rm called with an empty argument list.)