This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: cygport and C:\Windows\system32\tar.exe
- From: "Pavel Fedin" <p dot fedin at samsung dot com>
- To: "'Federico Kircheis'" <federico dot kircheis at gmail dot com>, <cygwin at cygwin dot com>
- Date: Mon, 1 Jul 2019 13:42:55 +0300
- Subject: RE: cygport and C:\Windows\system32\tar.exe
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190701104258euoutp0125906f80a4080ee4891bd0365695520d~tQoOB8k9F1058710587euoutp01e
- References: <CGME20190630053803epcas5p1a61a06ab1cf93b94e3342bf69761f15e@epcas5p1.samsung.com> <bae0be8b-310d-e187-e8f7-f08d3495ce1c@gmail.com>
This is solved by proper order of directories in your $PATH. Cygwin's /bin, /usr/bin, /usr/local/bin always come in front.
You seem to have no Cygwin tar installed, hence the search continues down to native Windows one.
Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia
> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Federico
> Kircheis
> Sent: Sunday, June 30, 2019 8:38 AM
> To: cygwin@cygwin.com
> Subject: cygport and C:\Windows\system32\tar.exe
>
> Hello,
>
> I'm working on Windows 10 freshly installed, installed cygwin too, and
> noticed that tar did not work on absolute files.
>
> Apparently there is a tar.exe from Microsoft in system32.
> https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/
>
> My problem is that cyport tries to invoke tar with an absolute file, and
> of course C:\Windows\system32\tar.exe does not understand a path that
> begins with `/cygdrive/c`.
>
> How do you generally solve that problem?
>
>
> Thanks in advance
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple