pfsshell icon indicating copy to clipboard operation
pfsshell copied to clipboard

[ISSUE]: Strange bug with put command and txt file

Open GDX-X opened this issue 3 years ago • 3 comments

Checks

  • [X] 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

  1. Create a txt file

  2. write hdd_partition=__common

  3. put it on hard drive

  4. Edit the txt file and replace __common with +OPL

  5. put it on hard drive

  6. 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

GDX-X avatar May 28 '22 21:05 GDX-X

Note to self: ftruncate?

uyjulian avatar May 28 '22 22:05 uyjulian

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.

uyjulian avatar Aug 16 '22 21:08 uyjulian

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

GDX-X avatar Aug 16 '22 22:08 GDX-X