mirror of https://github.com/mkerrisk/man-pages
glob.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c998e004b1
commit
10d2beb5f9
|
@ -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.)
|
||||
|
|
Loading…
Reference in New Issue