AgonConsole8 / agon-mos

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

MOS_ren call appears to fail when called from nano. #49

Closed lennart-benschop closed 5 months ago

lennart-benschop commented 5 months ago

The nano editor does the following when saving a file myfile.txt:

In MOS 2.2.1, when myfile.txt did not exist already, the file is saved as expected. When myfile.txt already exists, the save fails. The rename operation did not take place (myfile.bak was not created) and the delete operation did succeed (any old myfile.bak as deleted).

Note: this error condition only occurs when the machine has run autoexec.txt at startup, even when this autoexec.txt is an empty file. Nano can save normally when no autoexec.bin was present at all.

lennart-benschop commented 5 months ago

2.2.2 appears to have solved this issue now. This appeared to be a bug with uninitialized variables when mos_REN checked if the destination was a directory or not.