Page MenuHomeFreeBSD

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

Authored by des on May 23 2023, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 15, 3:38 PM
Unknown Object (File)
Tue, Jul 14, 5:26 AM
Unknown Object (File)
Thu, Jul 2, 9:54 AM
Unknown Object (File)
Tue, Jun 30, 10:18 PM
Unknown Object (File)
Tue, Jun 30, 6:09 AM
Unknown Object (File)
Mon, Jun 29, 8:20 PM
Unknown Object (File)
Sun, Jun 28, 4:41 PM
Unknown Object (File)
Sat, Jun 27, 3:41 PM
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