delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/02/17:54:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3156F3857C46
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=iname.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=bstewart AT iname DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com;
s=dbd5af2cbaf7; t=1599083632;
bh=AOFUGYQkbFDD7qdg+afb56GRsSFJ/iisEWEGZ+YkFEE=;
h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To;
b=mfIJjX0lwPXiIJGan9g8GFH9o41o2RZSxoRFPZTLyt79k0PtAbV/7en7rd+iZMsEC
WQq/5qOI5VghYsd3MCA/HocsTBbRN5rQ5XlGra6kD4u0ppc+Cd63uTdP/MjhKCaWVa
dWS+6bpkTk8DE1Py1naF9fNw+zCRnbzGdkd8bRqg=
X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79
X-Gm-Message-State: AOAM531qkXbM1oK/s6FhH0iybTQozHHG4haEJcMtSZLtV7r2unOw6+Zz
hCJ+QIbBcckhFmKt7WunI04OC0L9J0u+ejjXNX8=
X-Google-Smtp-Source: ABdhPJz7oFyZyPL4cN2yCTdLDhF8XFzOe5BbXgcZ/bGX9Xi/ULClESwSuE9HgnioCyPLKI7PH/X8AlKbihAxjmQGDPk=
X-Received: by 2002:a05:6830:20c7:: with SMTP id
z7mr277400otq.96.1599083630671;
Wed, 02 Sep 2020 14:53:50 -0700 (PDT)
MIME-Version: 1.0
References: <092af206-4d4a-28d9-ccdf-bdf2eafe5edd AT obj-sys DOT com>
<CAHSx_SuM7c1e4tYPq7r2SMmSUidH14oXkWpmrt-LDeg6OogjYA AT mail DOT gmail DOT com>
In-Reply-To: <CAHSx_SuM7c1e4tYPq7r2SMmSUidH14oXkWpmrt-LDeg6OogjYA@mail.gmail.com>
From: Bill Stewart <bstewart AT iname DOT com>
Date: Wed, 2 Sep 2020 15:53:24 -0600
X-Gmail-Original-Message-ID: <CANV9t=SAXRi86yXQ7D5rj0Mn+k009jnoWGftpyjw4QsAf91-Qg AT mail DOT gmail DOT com>
Message-ID: <CANV9t=SAXRi86yXQ7D5rj0Mn+k009jnoWGftpyjw4QsAf91-Qg@mail.gmail.com>
Subject: Re: Using cygwin tar from a DOS window
To: cygwin <cygwin AT cygwin DOT com>
X-Provags-ID: V03:K1:V+Hdb4HIVrhbPzqW3i6U9CftfgOoanAVtJz7howtv6KbNWP4sIQ
XCWkz5BOqAOPZUPZmmqVNQNynYYmLIJMoXnCXLKHh6W+0ViKwefjtjIlp7LmtWzeHZKcRpk
iXKurf+B8rYHhrtlq3QHzySq8VBmEpRXb0lWdgpiFFAmyFhafh9aMfSOObqhS+srbLWj2d4
4e1jMnl6LnouugUezYX8w==
X-UI-Out-Filterresults: notjunk:1;V03:K0:LSFtO8emSD8=:u7dZ96x+n7oWg8C1G5bIfF
ZU6C2ZwiYXutoDpBgxwGOOA7Z0jClTDmdJKs//8GaLinhRndeppszjoXDpMHeZp8uuLURFLyE
XQWrxu0ztcypRYMLYHeEzxyDJEFanGklVdnlp3Mhh7DUIrjAy++8BUUBnxc+GHWcvZVsV2DzP
6itUgw43Qk8/wC6Aw7/KULto8rotc5bUFaFr+/4lG8gYppn888qk6zeSpl0CMGsF1k3kYOzc8
7APNBEYwGrk4fryQqjOdxhYvKW2zbUjsCVKrF8gBwoc1SL9ddsJOU2pIRUcAaYgbVfD78yT05
GkCguj0qGokfUbVxMer3A3jN3Q6DeD4PD5+q3XiZB1LFzu8eOebkaPczR7uedauoNl5/ebnk1
6vv0vuanDSpTUNjsmtnmoYC72QaSngXJrQpsjsx0CfR7fC9Op/WSFktLF0FUnhKt6/3IKQyQb
iAssRwbzIR89MvAXWqP08dzf+fkO+gGFaVgiiIFXVkcRU/FajB5r64mfVUC6Y8VJfHT9gIJcc
cB3D7LFta9eBjPJk8tg6HEmIEl0uuOB5dhRMUE37nKs2B1MFSsvpNjLvm0HlMMCdNE+sxlefK
YLd0TSIU1LCV0TJQc2ePn4Z7edhLiq9eOrmPVegyiEANKJrbSHBeSCnhySseDJz9CHvpIbw+p
DW+X1Aes6Xt+OOTz7ITDfwAhh/1xOZ/sr2fYNFhRSEWqTRkY/LsKoNihjkff0mOCIqlFobQl/
QBxJNgLF1m7cSloMZ1D3FH2fnqS/wS1VvS2YN+sm0nnj4YPLuevko2NzX0M1NbqExuCJ8cS30
S6hOa4WPEQwhBEA5X7ZuCctocbMwt4gO00+IZaIT/t3bDLloA9vS0tSFzygGnoLlyap4RpoLK
VF75FD9tLyl7d7Bv+RI/r+X3o5b4JVX5ua6jFZy8dzNqqzE9GLui3F/yQ86So4AO+1sbsJlzq
Uw1MmKsZWS6oH7tYZTBWAN1sPbBxGqvcETAJZl71mLc1x23BmOp3ae1aZdSYpvrvo+RGJdbp4
1ogwq9Ff5tr5dYT/w0QepSF24ifjnAb9pEp17fvRcu+LR2Syg1sNdMnaUwVs7Tdgo1zEQhNfA
LoI9VlO6q5HS0AjbFpxeeME5H51VdOgaskO+BkvOyht0+r3ML3QFazcudeA60YATvgKTlESwl
uEhcVCjhES8O1kKoGnNSgAwu3+4fqtfTE+0dl1C1P3/+FZ9Sg3sQ7UePdUxnV/iuU1O6XlTHY
d141rBB/Rfpna/ufhJO7mGD03pE8OwMssvllF1g==
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Wed, Sep 2, 2020 at 3:30 PM Wayne Davison wrote:

Something like this seems to work fine (with very minimal testing):
>
> @echo off
> PATH=C:\cygwin64\bin
> C:\cygwin64\bin\tar %*
>

Keeping in mind that cmd.exe provides no environment variable scoping using
scripts, I would recommend setlocal/endlocal; example:

@echo off
setlocal enableextensions
rem set CYGPATH to cygwin "/bin" directory
set CYGPATH=C:\cygwin64\bin
set Path=%CYGPATH%;%Path%
"%CYGPATH%\tar" %*
endlocal

Bill
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019