help-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNU Tar on Windows XP


From: Gadrin
Subject: Re: GNU Tar on Windows XP
Date: Fri, 7 Mar 2008 21:36:40 -0800 (PST)
User-agent: G2/1.0

On Mar 3, 7:26 am, Gadrin <Gad...@gmail.com> wrote:
> On Mar 2, 9:59 pm, b...@proulx.com (Bob Proulx) wrote:
>
>
>
> > Gadrin wrote:
> > > do you get only folders and the structure (no files) on a test on your
> > > system ?
>
> > Correct.  I only get directories not files.
>
> > Here is a test hierarchy of directories and files.
>
> >   mkdir dir1 dir2 dir3
> >   mkdir dir1/foo
> >   mkdir dir1/foo/bar
> >   mkdir dir2/foo
> >   touch dir1/foo/bar/FILE
> >   touch dir1/foo/FILE
>
> >   find . -exec ls -ldog {} +
> >   drwxrwxr-x 5 4096 2008-03-02 22:54 .
> >   drwxrwxr-x 3 4096 2008-03-02 22:54 ./dir1
> >   drwxrwxr-x 3 4096 2008-03-02 22:54 ./dir1/foo
> >   -rw-rw-r-- 1    0 2008-03-02 22:54 ./dir1/foo/FILE
> >   drwxrwxr-x 2 4096 2008-03-02 22:54 ./dir1/foo/bar
> >   -rw-rw-r-- 1    0 2008-03-02 22:54 ./dir1/foo/bar/FILE
> >   drwxrwxr-x 3 4096 2008-03-02 22:54 ./dir2
> >   drwxrwxr-x 2 4096 2008-03-02 22:54 ./dir2/foo
> >   drwxrwxr-x 2 4096 2008-03-02 22:54 ./dir3
>
> > Here is a test case:
>
> >   find . -type d | tar cf - -T- --no-recursion | tar tvf -
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir1/
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir1/foo/
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir1/foo/bar/
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir3/
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir2/
> >   drwxrwxr-x bob/bob           0 2008-03-02 22:54 ./dir2/foo/
>
> > Only directories are processed.  Works for me.
>
> > Bob
>
> Okay, it must be windows that's having the problem.
>
> Mine finds only folders but when that path is passed to tar, it thinks
> I'm
> specifying the entire folder with no restrictions.
>
> Looks like xcopy is it for now.
>
> Can you recommend a decent GNU shell ? When I downloaded the
> GNU core utils it came with SH.EXE and I recently downloaded WIN-
> BASH.EXE
> but I can't find documentation. Apparently it uses different paths and
> doesn't see
> the .EXEs that I have in the same folder.
>
> I guess I have more digging, but for now it's workable.

Thanks for your help.


reply via email to

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