AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
31 stars 10 forks source link

CAT with nonexisting path will crash. #48

Closed lennart-benschop closed 7 months ago

lennart-benschop commented 7 months ago

Discovered in MOS 2.2.1

When you type the following command on the command line:

CAT xyzzy

the system crashes if xyzzy does not happen to be the name of a directory. If you type a pattern containing stars, it appears to work just right.

stevesims commented 7 months ago

this bug has now even fixed, with the fix released as part of 2.2.2.

this issue was caused by a mistake in determining whether or not a directory exists. the method that had been used would work in the emulator, but wouldn't on-device. a bug report has been filed on the emulator about this inconsistent behaviour