Sergey,

You ran into the problem mentionned by Erik.
Make sure the content of the file baz is:

```
foo\055bar
```

Running the commands like a script like you did puts two backslashes.

Nicolas


On Wed, Oct 30, 2013 at 5:10 PM, Sergey Poznyakoff <g...@gnu.org.ua> wrote:

> Hi Nicolas,
>
> > 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
> > tar -cf qux.tar -T baz
> > ```
>
> I get the same behavior with both 1.26 and 1.27:
>
> gray@ulysses:~/tmp$ tar --version
> tar (GNU tar) 1.26
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
> gray@ulysses:~/tmp$ sh f.sh
> tar: foo\\055bar: Cannot stat: No such file or directory
> tar: Exiting with failure status due to previous errors
>
> Regards,
> Sergey
>

Reply via email to