Closed codehz closed 3 years ago
Anything starting with /
or -
is treated as a switch, not a file. The special switch --
is used to indicate there are no more options. Does this work if you do erase -- --123
? This pattern was incorporated from GNU tools.
Anything starting with
/
or-
is treated as a switch, not a file. The special switch--
is used to indicate there are no more options. Does this work if you doerase -- --123
? This pattern was incorporated from GNU tools.
The problem is I'm not even use the file name in the arguments, I try to delete the parent folder (in this case, it's folder a)
Which version of Yori and which version of Windows are you using? I haven't been able to reproduce this on the combinations I've tried.
@malxau YoriLib version: 01.40 Yori shell version: 01.40 Build date: Nov 10 2020
Windows: Windows version: 10.0.21277 (unknown), AMD64 screenshots:
In this screenshot, isn't --123 a folder? Erase is for files. Rmdir should remove it. In CMD, del will by default prompt for confirmation but then do nothing.
repro:
now it report
erase: no matching files found
NOTICE: It can be remove by
rmdir -s -q a