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
F174535167: D40237.id.diff
Sun, Oct 4, 12:14 AM
Unknown Object (File)
Thu, Oct 1, 10:20 PM
Unknown Object (File)
Thu, Oct 1, 10:20 PM
Unknown Object (File)
Thu, Oct 1, 10:20 PM
Unknown Object (File)
Thu, Oct 1, 1:27 PM
Unknown Object (File)
Wed, Sep 30, 4:19 PM
Unknown Object (File)
Aug 15 2026, 2:52 AM
Unknown Object (File)
Aug 15 2026, 2:52 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 51641
Build 48532: arc lint + arc unit