malxau / yori

Yori is a CMD replacement shell that supports backquotes, job control, and improves tab completion, file matching, aliases, command history, and more.
http://www.malsmith.net/yori/
MIT License
1.24k stars 31 forks source link

rmdir succeeds without action when a non-directory file is passed #93

Closed jstarks closed 3 years ago

jstarks commented 3 years ago

Yori 1.40:

C:\Users\jostarks\tmp>touch foo
C:\Users\jostarks\tmp>rmdir foo || echo huh?
C:\Users\jostarks\tmp>dir foo

 Directory of C:\Users\jostarks\tmp

03/14/2021  03:26 PM                  0 foo
           1 File(s)                  0 bytes
           0 Dir(s)      22,596,653,056 bytes free
malxau commented 3 years ago

This was fixed after 1.40 in commit 5de18adb07c5c3c1525f22568c3fbbdd7a28c0f5 .

malxau commented 3 years ago

This should be fixed in 1.50, released today. Please let me know if there are further related issues.