Open DarioS opened 3 months ago
I am reluctant to add checks like that, certain awareness is required from users when working with command line tools.
Few notes if such check should be added:
realpath()
would have to be used to prevent common variations (eg ./file.bcf
vs file.bcf
) or symlinksSo although seemingly simple, it's not an easy decision to make.
It sounds like it should be possible to modify file in-place:
However, if
-o
path is same as input file path, the result is a corrupted file. Why not an error message or work as expected?