-
Notifications
You must be signed in to change notification settings - Fork 34
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
ls command failed for special marks: Sort-Object and InvalidArgument errors #38
Comments
In addition, filename like |
I'm getting the same error with the following character:
I don't know squat about PowerShell, but I guess that this:
evaluates to false, so the next conditions are checked. |
Seeing this as well when using $PSVersionTable
|
There's no problem to run
l
, however, to runls
failed on PowerShell 7.0.1.At first, there are Sort-Object errors like
The error repeats with values "-2171", "-3684", and "-3692" for many times. Then, after listing all the folders (directory), there are InvalidArgument errors like:
The error repeats with values "-3684", "-2171", "-3683", "-3692", "3688", and "-3687" for many times.
After many experiments, I found that
ls
command worked well for most folders but for certain situation it failed. The error information shows only before files with names that containing SBC case of quotation marks (both double and single) (“,‘), star marks (★, ※, ☆), ellipsis dots (……), dash mark (——), arrow marks (↑↓←→), tick mark (√), and shape marks (○, △, □). All other SBC and special marks work correctly. Among them, quotation marks, ellipsis dots, and dash marks are in common use.The text was updated successfully, but these errors were encountered: