Description
With the Coreutils for Windows release, the find multi-call binary handles both Unix-style find and legacy DOS find compatibility. However, when executing a standard Unix find command and specifying the root or a path using a standalone forward slash /, the parser/dispatcher mistakenly treats / as a DOS-style switch prefix rather than a positional path argument. This triggers the legacy Windows find error.
Steps to Reproduce
Run the following command in a terminal where Coreutils for Windows is active:
Bash
Expected Behavior
The command should be routed to the Unix-style find utility, treating / as the starting directory path for the search.
Actual Behavior
The command fails immediately with the legacy DOS find.exe error message:
Plaintext
Environment / Context
Description
With the Coreutils for Windows release, the
findmulti-call binary handles both Unix-stylefindand legacy DOSfindcompatibility. However, when executing a standard Unixfindcommand and specifying the root or a path using a standalone forward slash/, the parser/dispatcher mistakenly treats/as a DOS-style switch prefix rather than a positional path argument. This triggers the legacy Windowsfinderror.Steps to Reproduce
Run the following command in a terminal where Coreutils for Windows is active:
Bash
find / -name *.txtExpected Behavior
The command should be routed to the Unix-style
findutility, treating/as the starting directory path for the search.Actual Behavior
The command fails immediately with the legacy DOS
find.exeerror message:Plaintext
Environment / Context
OS: Windows 11
Installation Method:
winget install Microsoft.CoreutilsShell: PowerShell 7+ / CMD