f2
f2 copied to clipboard
Expanded variables are not sanitized properly
Expanded variables (like ID3 tags) are not sanitized and escaped properly. For example:
> mediainfo "19. D_1993 F2.flac"
Track name: D/1993 F2
> f2 -r "{%02d}. {id3.title}{ext}" "19. D_1993 F2.flac"
*————————————————————*————————————————————*————————*
| ORIGINAL | RENAMED | STATUS |
*————————————————————*————————————————————*————————*
| 19. D_1993 F2.flac | 19. D/1993 F2.flac | ok |
*————————————————————*————————————————————*————————*
> f2 -x -r "{%02d}. {id3.title}{ext}" "19. D_1993 F2.flac"
> ls
'19. D'
> ls "19. D"
'1993 F2.flac'
This is a bug. I will reproduce and fix it accordingly, thanks!
Thanks!