Skip to content

Search on drive letter directory with '--' option does not correctly parse commandline #1658

Answered by BurntSushi
Belpaire asked this question in General
Discussion options

You must be logged in to vote

When filing bugs, it is always good to try to simplify your use case. In this example, your command has a whole bunch of attempted flags and arguments. Why not try something that tests the only thing that you think is going wrong? Like this:

$ rg -- "-integer" "D:\"

What is the output of that command? And if that fails, then what does this do?

$ rg integer "D:\"

Please help me debug your problem. Please include the full output of the command.

As for your other errors, they are expected. The -- is a common Unix convention indicating that all arguments following it are positional. In other words, once you type --, you can't put any flags after it. That's the whole point, otherwise -integer

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1658 on August 18, 2020 13:45.