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
F68119094: D40237.diff
Sat, Sep 23, 7:37 AM
Unknown Object (File)
Jul 15 2023, 10:44 PM
Unknown Object (File)
Jun 27 2023, 8:53 AM
Unknown Object (File)
Jun 24 2023, 8:22 AM
Unknown Object (File)
Jun 24 2023, 3:47 AM
Unknown Object (File)
Jun 18 2023, 8:56 AM
Unknown Object (File)
May 28 2023, 3:51 AM
Unknown Object (File)
May 27 2023, 2:53 PM
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