glob.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-07-28 08:14:15 +02:00
parent c998e004b1
commit 10d2beb5f9
1 changed files with 6 additions and 3 deletions

View File

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