Page MenuHomeFreeBSD

ctags: Support writing to stdout instead of a file.
ClosedPublic

Authored by des on Tue, May 23, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 28, 3:51 AM
Unknown Object (File)
Sat, May 27, 2:53 PM
Unknown Object (File)
Fri, May 26, 6:35 PM
Unknown Object (File)
Thu, May 25, 1:26 PM
Unknown Object (File)
Wed, May 24, 11:10 PM
Unknown Object (File)
Wed, May 24, 12:24 AM
Subscribers

Details

Summary
  • 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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Tue, May 23, 4:51 PM
debdrup added a subscriber: debdrup.

mdoc(7) changes look good to me, can't speak to the code.

This revision is now accepted and ready to land.Tue, May 23, 6:49 PM