| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
/cc Michael Klement (@mklement0) for information. |
Sorry, something went wrong.
| try { | ||
| New-Item -Type File 'a`[b]' -ErrorAction SilentlyContinue > $null | ||
| $WithInclude = Get-ChildItem * -Include 'a```[b`]' | ||
| $WithPath = Get-ChildItem -Path 'a```[b`]' |
There was a problem hiding this comment.
I suggest adding another test where escaped and [ and ] are combined with * or ? - because a bug currently lurks there (you inexplicably need an extra round of escaping then); e.g., Get-Item -Path 'a```[b*' breaks at the moment.
Sorry, something went wrong.
There was a problem hiding this comment.
Michael Klement (@mklement0) Thanks!
Done.
Aditya Patwardhan (@adityapatwardhan) I don't use -Casesso as not to add a new Describe.
Sorry, something went wrong.
There was a problem hiding this comment.
I removed the test because it seems it looks like a bug. I hope we will discuss this in new issue.
Sorry, something went wrong.
There was a problem hiding this comment.
Ilya (@iSazonov): We have a catch-all issue at #7999 and one regarding invalid patterns getting ignored #6733. Perhaps put the tests in commented out for now, with a link to the issues?
Also note that ] doesn't need escaping, as long as the [ is escaped; so, given that Get-ChildItem -Path 'a```[b`]' works, but Get-ChildItem -Path 'a```[b]' (no escaping of ]) doesn't, that should be considered another bug.
Sorry, something went wrong.
There was a problem hiding this comment.
Perhaps put the tests in commented out for now, with a link to the issues?
We could add tests in pending state but I think it will be more useful if it is in related discussions than hidden in tests.
Sorry, something went wrong.
|
🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Add new test for #3724 to exclude a regression.
PR Context
PR Checklist