Skip to content

Start-Process fails in folder containing [ #11940

@shiena

Description

@shiena

Steps to reproduce

mkdir "["
cd -LiteralPath "["
start cmd

Note

Start-Process works with the -WorkingDirectory option.

mkdir "["
cd -LiteralPath "["
start -WorkingDirectory . cmd

Expected behavior

Start-Process works

Actual behavior

start : The specified wildcard character pattern is not valid: [
At line:1 char:1
+ start cmd
+ ~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Start-Process], WildcardPatternException
+ FullyQualifiedErrorId : RuntimeException,Microsoft.PowerShell.Commands.StartProcessCommand

Environment data

Tested with Powershell:
- 5.1 (Windows 10 1909)
- 6.2.4 (Windows 10 1909)
- 7.0.0 RC3 (Windows 10 1909)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions