[ISSUE]: Strange bug with put command and txt file
GDX-X opened this issue · 3 comments
Checks
- I have checked existing issues for duplicates and found none
Describe the issue
I found a strange bug on pfsshell (present on all versions)
the steps to take to reproduce the bug
-
Create a txt file
-
write
hdd_partition=__common
-
put it on hard drive
-
Edit the txt file and replace
__common
with+OPL
-
put it on hard drive
-
recover file from hard drive
who will give
hdd_partition=+OPLmmon
I also tried deleting the file before copying it, it does the same thing.
https://www.youtube.com/watch?v=CytM9ilctwQ
Console model
X
Note to self: ftruncate?
Due to the fact that truncate
is not implemented, this will require a large rework of the code to support properly.
For now, save the changes to a new file instead of doing in-place changes.
Yeah, but it's not too disturbing. because the file will be replaced in any case as long as it works it is not urgent. the solution is simply to quit pfshell and restart it to have the complete file