HomeFreeBSD

ctags: Support writing to stdout instead of a file.

Description

ctags: Support writing to stdout instead of a file.

  • 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.
Reviewed by: cracauer, debdrup
Differential Revision: https://reviews.freebsd.org/D40237

Details

Provenance
desAuthored on May 25 2023, 11:55 AM
Reviewer
cracauer
Differential Revision
D40237: ctags: Support writing to stdout instead of a file.
Parents
rG4bf44dd73bc0: ifconfig: switch IPv4/IPv6 address manipulations to Netlink.
Branches
Unknown
Tags
Unknown