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
F159831652: D40237.id122407.diff
Thu, Jun 18, 3:26 PM
Unknown Object (File)
May 15 2026, 12:54 PM
Unknown Object (File)
May 15 2026, 7:16 AM
Unknown Object (File)
May 14 2026, 10:26 PM
Unknown Object (File)
May 12 2026, 9:08 AM
Unknown Object (File)
May 6 2026, 3:00 AM
Unknown Object (File)
May 1 2026, 5:43 AM
Unknown Object (File)
Apr 30 2026, 6:19 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