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
F146290397: D40237.id122407.diff
Sun, Mar 1, 11:14 AM
Unknown Object (File)
Sat, Feb 7, 11:37 PM
Unknown Object (File)
Sat, Feb 7, 9:00 PM
Unknown Object (File)
Sat, Jan 31, 2:35 AM
Unknown Object (File)
Jan 28 2026, 1:50 AM
Unknown Object (File)
Jan 22 2026, 11:05 PM
Unknown Object (File)
Jan 16 2026, 11:25 PM
Unknown Object (File)
Jan 15 2026, 10:48 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