Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no results for term surrounded by single quotes under Microsoft Windows 10 #253

Open
Konfekt opened this issue Aug 31, 2021 · 3 comments
Open

Comments

@Konfekt
Copy link

Konfekt commented Aug 31, 2021

With

let g:grepper.prompt_quote = 2

under Windows 10, no results are found. That is, if the search term is surrounded by single quotes, then, under Windows 10, no grepper tool (be it git-grep, rg, ag, ...) finds any result.

Instead double quotes work fine.

Therefore

let g:grepper.prompt_quote = has('win32') ? 3 : 2

is to be recommended.

@Konfekt
Copy link
Author

Konfekt commented Aug 31, 2021

This is not specific to vim-grepper. Vim's grep with &grepprg set just as grepper.tool.grepprg also shows no results for search terms surrounded by single quotes.

@blm768
Copy link

blm768 commented Apr 1, 2022

As I understand it, this is a pretty normal artifact of the "standard" quoting rules on Windows (to the extent such a standard exists).

This is also an issue for the grep operator, which seems to always single-quote the query.

@Konfekt
Copy link
Author

Konfekt commented Apr 1, 2022

Yes, single quoting on Windows gives results that have little to do with what you expect on Unix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants