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, May 9, 7:23 PM
Unknown Object (File)
Thu, May 2, 12:59 PM
Unknown Object (File)
Wed, May 1, 1:46 AM
Unknown Object (File)
Sat, Apr 27, 3:45 AM
Unknown Object (File)
Fri, Apr 19, 8:18 AM
Unknown Object (File)
Apr 9 2024, 5:15 AM
Unknown Object (File)
Feb 18 2024, 8:29 AM
Unknown Object (File)
Dec 22 2023, 1:35 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