public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Jon Mountjoy <mountjoy@netcomuk.co.uk>, cygwin@sourceware.cygnus.com
Subject: Re: tar -C dir option makes dir relative to current dir
Date: Wed, 06 Sep 2000 09:43:00 -0000	[thread overview]
Message-ID: <20000906164351.27048.qmail@web114.yahoomail.com> (raw)

--- Jon Mountjoy <mountjoy@netcomuk.co.uk> wrote:
> Hi All,
> 
> I have read all docs and couldn't solve my problem.  In a make file I have:
>  cd foo && tar blah blah | tar -C j:/foobar
> 
> Now I run the make file from the l: drive (so l:/foo exists).
> 
> The problem is that when the tar on the right gets run, it tries to place
> the files in the directory:
>   /cygdrive/l/foo/j:/foobar
> which of course isn't a valid directory.
> 

As I see it, tar is assuming the j:/foobar is a relative path since the string
doesn't begin with /.  This causes the prefix /cygdrive/l/foo to be added to
make the path absolute.

If you:
   mkdir /j
   mount -b j:/ /j
   tar -C /j/foobar
then tar will see the string beginning with / and not make the false assumption
that the path isn't absolute.

The other option is to modify tar and submit the patches to
cygwin-apps@soures.redhat.com for consideration.

Cheers,

=====
--- < http://earniesystems.safeshopper.com > ---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

             reply	other threads:[~2000-09-06  9:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-06  9:43 Earnie Boyd [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-06  9:16 Bernard Dautrevaux
2000-09-06  9:14 Bernard Dautrevaux
2000-09-06  7:38 Jon Mountjoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000906164351.27048.qmail@web114.yahoomail.com \
    --to=earnie_boyd@yahoo.com \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=mountjoy@netcomuk.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).