看来不是一个实现版本。
$ find . -name "*.[ch]" -print | etags -L -
这样就可以了。
$ etags --help
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Jun 11 2008, 21:08:30
Addresses: <
[email protected]>,
http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
Usage: etags [options] [file(s)]
-L <file>
A list of source file names are read from the specified file.
If specified as "-", then standard input is read.
有意思的是,我在另一台linux机器上的etags是这样的:
$ etags --help
Usage: etags [options] [[regex-option ...] file-name] ...
These are the options accepted by etags.
You may use unambiguous abbreviations for the long option names.
A - as file name means read names from stdin (one per line).
Absolute names are stored in the output file as they are.
Relative ones are stored relative to the output file's directory.
$ find . -name "*.[ch]" -print | etags -
$ find . -name "*.[ch]" -print | etags -L -
etags: invalid option -- L
Try `etags --help' for a complete list of options.