Bdale Garbee <[email protected]> ha escrit:
> Some years ago, a Debian user pointed out that tar behaves badly when
> given legal (but weird?) POSIX filenames like
>
> \fhd =
"For instance, the command
tar vzcf file.tar.gz '\fhd ='
exits with the following error:
tar: \fhd =: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors"
This is the correct behavior. The --unquote option is used by default,
so the \f in the file name is translated to ASCII form-feed character.
This is documented in
https://www.gnu.org/software/tar/manual/html_node/Selecting-Archive-Members.html
The reporter should have used the --no-unquote option to disable unquoting.
Regards,
Sergey