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: Nicolas Dudebout
Subject: Re: [Bug-tar] tar -T improperly handle escaped characters
Date: Wed, 30 Oct 2013 17:27:31 -0400

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 <address@hidden> 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:

address@hidden:~/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.
address@hidden:~/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

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