bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Tar doesn't seem to support white-space in directory name


From: Ralph Corderoy
Subject: Re: [Bug-tar] Tar doesn't seem to support white-space in directory name when using --directory
Date: Wed, 27 Jun 2018 13:44:16 +0100

Hi Brian,

> I have trouble getting the --directory=dir to work when dir include
> white-space(s)

Using tar 1.30 here,

    $ mkdir 'foo bar'
    $ >'foo bar'/xyzzy
    $ tar --directory='foo bar' -cvf brian.tar xyzzy
    xyzzy
    $ find | sort -V
    .
    ./brian.tar
    ./foo bar
    ./foo bar/xyzzy
    $ tar tvf brian.tar
    -rw-r--r-- ralph/ralph       0 2018-06-27 13:41 xyzzy
    $ 

Note, -C is `order sensitive', as the fine man page says.

If you can't recreate the above, show and tell.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

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