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)
Sat, Jan 10, 1:53 AM
Unknown Object (File)
Sun, Dec 28, 4:24 PM
Unknown Object (File)
Fri, Dec 26, 2:48 AM
Unknown Object (File)
Wed, Dec 17, 8:43 AM
Unknown Object (File)
Dec 11 2025, 6:03 PM
Unknown Object (File)
Dec 8 2025, 12:46 PM
Unknown Object (File)
Dec 2 2025, 10:50 AM
Unknown Object (File)
Nov 17 2025, 8:31 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