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)
Thu, Feb 6, 9:38 PM
Unknown Object (File)
Mon, Jan 27, 4:57 PM
Unknown Object (File)
Sun, Jan 26, 6:06 PM
Unknown Object (File)
Fri, Jan 24, 5:21 PM
Unknown Object (File)
Fri, Jan 24, 4:57 PM
Unknown Object (File)
Jan 14 2025, 1:11 PM
Unknown Object (File)
Jan 9 2025, 7:10 PM
Unknown Object (File)
Jan 9 2025, 7:53 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