bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar -T improperly handle escaped characters


From: Eric Blake
Subject: Re: [Bug-tar] tar -T improperly handle escaped characters
Date: Wed, 30 Oct 2013 12:29:05 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 10/29/2013 02:41 PM, Nicolas Dudebout wrote:
> The `--files-from` (`-T`) option does not properly work in 1.27 but was
> properly working in 1.26. It fails in the presence of escaped characters as
> described in the following code snippet:
> 
> ```
> mkdir test
> cd test
> echo something > foo-bar
> echo 'foo\\055bar' > baz

echo'ing a backslash is non-portable.  Are you sure that you are getting
the contents you intended?  To be portable, use printf(1) instead of
echo(1) whenever \ is involved.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]