Bug 176361 - [PATCH] Add recursive option to ctags(1)
Summary: [PATCH] Add recursive option to ctags(1)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 20:20 UTC by Fernando Apesteguía
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
file.diff (2.76 KB, patch)
2013-02-22 20:20 UTC, Fernando Apesteguía
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Apesteguía freebsd_committer 2013-02-22 20:20:00 UTC
The ctags version shipped with FreeBSD lacks the -R (recursive) option that is extremely useful.

The patch I propose implements this feature by simply using ftw(3). It is a non intrusive patch as it changes nothing regarding the text analysis itself. I tested it with several pieces of C source code and filesystem links and seems to work fine.

The patch also updates the manual page.

Fix: Apply the attached patch.

It applies cleanly to FreeBSD 9.0-RELEASE sources.

Patch attached with submission follows:
How-To-Repeat: Just try ctags -R :)
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:01 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped