代码: 全选
NON-BUGS
$ find . -name *.c -print
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
This happens because *.c has been expanded by the shell result-
ing in find actually receiving a command line like this:
find . -name bigram.c code.c frcode.c locate.c -print
That command is of course not going to work. Instead of doing
things this way, you should enclose the pattern in quotes:
$ find . -name '*.c' -print
呵呵,估计作者收到无数这样子的抱怨,不得不站出来给自己澄清一下了,cute