[Top][All Lists]

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

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

From: Nicolas Dudebout
Subject: Re: [Bug-tar] tar -T improperly handle escaped characters
Date: Wed, 30 Oct 2013 14:31:13 -0400

echoing was only done in this bug report to give the use case. I actually wrote the file manually and had the same problem.

This problem came up in docker as reported in this issue: https://github.com/dotcloud/docker/issues/2403

On Wed, Oct 30, 2013 at 2:29 PM, Eric Blake <address@hidden> wrote:
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

reply via email to

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