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. definition.
It allowed one to have patterns that expand into It allowed one to have patterns that expand into
an empty list, as in an empty list, as in
.br
.nf .nf
xv \-wait 0 *.gif *.jpg xv \-wait 0 *.gif *.jpg
.fi .fi
where perhaps no *.gif files are present (and this is not where perhaps no *.gif files are present (and this is not
an error). an error).
However, POSIX requires that a wildcard pattern is left 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. (Similar problems occur elsewhere.
E.g., where old scripts have E.g., where old scripts have
.br
.nf .nf
rm \`find . \-name "*~"\` rm \`find . \-name "*~"\`
.fi .fi
new scripts require new scripts require
.br
.nf .nf
rm \-f nosuchfile \`find . \-name "*~"\` rm \-f nosuchfile \`find . \-name "*~"\`
.fi .fi
to avoid error messages from to avoid error messages from
.I rm .I rm
called with an empty argument list.) called with an empty argument list.)