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 <ebl...@redhat.com> 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