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)
Nov 28 2024, 2:09 PM
Unknown Object (File)
Nov 24 2024, 12:20 AM
Unknown Object (File)
Nov 21 2024, 7:03 AM
Unknown Object (File)
Nov 20 2024, 11:36 AM
Unknown Object (File)
Nov 17 2024, 10:16 PM
Unknown Object (File)
Nov 7 2024, 5:05 PM
Unknown Object (File)
Oct 30 2024, 12:45 PM
Unknown Object (File)
Oct 20 2024, 3: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