Skip to content

ctags -L: not possible to specifiy files with leading dashes (handled as option) #1883

Open
@blueyed

Description

@blueyed

The man page for -L file says:

Options are also accepted in this input.

This is a problem with real files with uncommon names like -X:

% printf '%s\n'  '-X' | ctags -L -
ctags: Unknown option: -X

I've tried passing in -- in front to ignore filenames like -X, but this results in:

% printf '%s\n' '--' '-X' | ctags -L -
ctags: Unknown option: --

I think -L - should either not accept/handle options (backward incompatible?), or skip option parsing after --.

My use case is using rg --files | ctags --links=no -L - to generate tags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions