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

A path separator must be exactly one byte, but the given separator is 20 bytes #957

Closed
rofrol opened this issue Jun 20, 2018 · 1 comment
Labels
doc An issue with or an improvement to documentation. duplicate An issue that is duplicative of another. question An issue that is lacking clarity on one or more points.

Comments

@rofrol
Copy link

rofrol commented Jun 20, 2018

What version of ripgrep are you using?

$ rg --version
ripgrep 0.8.1
-SIMD -AVX

How did you install ripgrep?

cargo install ripgrep

What operating system are you using ripgrep on?

Windows 10 and git bash

Describe your question, feature request, or bug.

When in git bash, cannot provide path separator as just /.

If this is a bug, what are the steps to reproduce the behavior?

$ rg --files -telm --path-separator /
A path separator must be exactly one byte, but the given separator is 20 bytes.

If this is a bug, what is the actual behavior?

As above.

If this is a bug, what is the expected behavior?

ripgrep accepts / in git bash.

@BurntSushi
Copy link
Owner

This looks like a duplicate of #501 (comment). It looks like your shell is expanding / to something else. I don't use Windows, so you'll need to figure out how to disable or work around that behavior. From the linked issue, try --path-separator '\x2F' or --path-separator //.

@BurntSushi BurntSushi added duplicate An issue that is duplicative of another. question An issue that is lacking clarity on one or more points. labels Jun 20, 2018
@BurntSushi BurntSushi added the doc An issue with or an improvement to documentation. label Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc An issue with or an improvement to documentation. duplicate An issue that is duplicative of another. question An issue that is lacking clarity on one or more points.
Projects
None yet
Development

No branches or pull requests

2 participants