freebsd-src/usr.bin/ctags
Dag-Erling Smørgrav 430d064ba5 ctags: Support writing to stdout instead of a file.
* Understand "-" to mean stdout as per convention.
* Check that the output is a regular file and ignore -u if not, otherwise we might try to rm /dev/stdout.
* As a bonus, if -u was specified but the output file does not exist, proceed as if -u had not been specified instead of erroring out.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	cracauer, debdrup
Differential Revision:	https://reviews.freebsd.org/D40237
2023-05-25 13:22:18 +00:00
..
test
C.c
ctags.1 ctags: Support writing to stdout instead of a file. 2023-05-25 13:22:18 +00:00
ctags.c ctags: Support writing to stdout instead of a file. 2023-05-25 13:22:18 +00:00
ctags.h
fortran.c
lisp.c
Makefile
Makefile.depend
print.c
tree.c
yacc.c