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

Glob: add ~backslash_escapes to control handling of backslashes #198

Merged
merged 1 commit into from
Aug 27, 2021
Merged

Glob: add ~backslash_escapes to control handling of backslashes #198

merged 1 commit into from
Aug 27, 2021

Conversation

nojb
Copy link
Contributor

@nojb nojb commented Aug 26, 2021

This is a follow-up to #197, which had only a partial fix for the handling of backslashes in the Glob module. In this PR, we add a new optional argument to Glob.glob, namely ~backslash_escapes. When true (the default), behaviour is unchanged: backslashes escape the following character. When false, backslashes are taken to be equivalent to forward slashes, which is useful when globbing Windows paths.

@rgrinberg rgrinberg merged commit df17d8d into ocaml:master Aug 27, 2021
@nojb nojb deleted the better_backslash_handling branch August 27, 2021 07:40
@nojb
Copy link
Contributor Author

nojb commented Aug 27, 2021

Thanks!

rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Sep 9, 2021
CHANGES:

* Glob: add optional argument `?backslash_escapes` to control interpretation of
  backslashes (useful under Windows) (ocaml/ocaml-re#197, ocaml/ocaml-re#198)

* Restore accidentally deleted `*_seq` deprecated aliases.
@nojb nojb mentioned this pull request Sep 10, 2021
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

Successfully merging this pull request may close these issues.

2 participants