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

path/filepath: Glob ignores escape characters on non-Windows #23418

Closed
mvdan opened this issue Jan 11, 2018 · 1 comment
Closed

path/filepath: Glob ignores escape characters on non-Windows #23418

mvdan opened this issue Jan 11, 2018 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@mvdan
Copy link
Member

mvdan commented Jan 11, 2018

What version of Go are you using (go version)?

go version devel +4a28707d55 Wed Jan 10 16:13:38 2018 +0000 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What did you do?

https://play.golang.org/p/szEMiava76J

What did you expect to see?

Given that this is Linux:

[a] <nil>
[a] <nil>
true <nil>

What did you see instead?

[a] <nil>
[] <nil>
true <nil>

I think this is broken, because the Match docs say:

On Windows, escaping is disabled. Instead, '\' is treated as path separator.

And, as you can see, Match works while Glob doesn't. CL incoming.

@mvdan mvdan added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 11, 2018
@mvdan mvdan added this to the Go1.11 milestone Jan 11, 2018
@mvdan mvdan self-assigned this Jan 11, 2018
@gopherbot
Copy link

Change https://golang.org/cl/87455 mentions this issue: path/filepath: fix escaped chars in Glob on non-Windows

@golang golang locked and limited conversation to collaborators Feb 14, 2019
@rsc rsc unassigned mvdan Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants