[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] mis-handling of weird filenames
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] mis-handling of weird filenames |
Date: |
Mon, 04 Feb 2019 21:56:55 +0200 |
Bdale Garbee <address@hidden> 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