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

Bug: [ ] Square Brackets in Path #48

Closed
TheTaylorLee opened this issue Jul 22, 2024 · 1 comment · Fixed by #49
Closed

Bug: [ ] Square Brackets in Path #48

TheTaylorLee opened this issue Jul 22, 2024 · 1 comment · Fixed by #49
Labels
bug Something isn't working Priority: Low

Comments

@TheTaylorLee
Copy link
Owner

TheTaylorLee commented Jul 22, 2024

Describe the bug
Using square brackets in file and/or folder names results in files not being handled. The reason for this is Get-Childitem, Move-Item, and possibly others treats characters between square brackets as regex filters.

Additional context
This is low priority for fixing, but could be addressed in the future.

If fixing, modules and build script files need reviewed.

@TheTaylorLee TheTaylorLee added bug Something isn't working Priority: Low labels Jul 22, 2024
@TheTaylorLee
Copy link
Owner Author

TheTaylorLee commented Oct 2, 2024

-literalpath parameter is used to get ignore regex patters and treat them litteraly.

Functions to search and possibly add literalpath parameters to.

  • Use regex matching patterns with VSCode search.
  • *.ps1 in files to include

Add-Content|Clear-Content|Clear-Item|Clear-ItemProperty|Clear-RecycleBin|Convert-Path|Copy-Item|Copy-ItemProperty|Debug-Process|Get-ChildItem|Get-Clipboard|Get-ComputerInfo|Get-Content|Get-HotFix|Get-Item|Get-ItemProperty|Get-ItemPropertyValue|Get-Location|Get-Process|Get-PSDrive|Get-PSProvider|Get-Service|Get-TimeZone|Invoke-Item|Join-Path|Move-Item|Move-ItemProperty|New-Item|New-ItemProperty|New-PSDrive|New-Service|Pop-Location|Push-Location|Remove-Item|Remove-ItemProperty|Remove-PSDrive|Remove-Service|Rename-Computer|Test-Path

@TheTaylorLee TheTaylorLee linked a pull request Oct 2, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant