|
From: | Nicolas Dudebout |
Subject: | Re: [Bug-tar] tar -T improperly handle escaped characters |
Date: | Wed, 30 Oct 2013 14:31:13 -0400 |
On 10/29/2013 02:41 PM, Nicolas Dudebout wrote:echo'ing a backslash is non-portable. Are you sure that you are getting
> 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
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
[Prev in Thread] | Current Thread | [Next in Thread] |