X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 18A6038EC9BB
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=E9BHaFXNz0zu4FvxottO+tnw80z5hGD7XEyfnI3Ztzc=;
 b=NAREqq3+X7yfg8lFjdTR1P0Xfeacx1RjdCUkKU/hTOUY48xj2/QlU8+jKuxO9v7sBD
 YIc634YNLR76Loqqv1uImdnB14hsZtAmyefLYuaYRAA1C+Xq2OsB01kAJCqs7O52UJ10
 o4G0/qSejXCL1OQoOu9Tu/MmF/vh2VfcQwB3G0/qtk9KHnMhaZa3e3K6LItoU9X7JXVw
 +6MKFwN5ATTraB0SDbCnK+ghHn30Hi+dDbI/QfhfeHzygYsDDVFbZooBoNqwN2Drq9Uu
 CSPMRvaVOH3ZvrEf85gr6SIcK+ZkunpmQcyS37Iq275apo0s87r759IcEPgLjBhdEc5j
 ygHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=E9BHaFXNz0zu4FvxottO+tnw80z5hGD7XEyfnI3Ztzc=;
 b=iZHJV67UcVRwNTXu7ZcVbQa7qj3W58+oyRM8rrt99WdkyIWm3h8egmwXKlxKfQJojG
 JC3PZQMkLy3/He8p2h40EIAaq6jVxO+fI/nEcOyv5O5XAdpLKYtHhAH5UT7DeQCQA2bD
 rTnSOQBc9JW3F99ucc3ZE8wcZIe3pQZp289gcvMc1+tAm7RdsQ4FDRLorbRdumIQFYQV
 HMWYSW2KlhPiV7POAQBC88YsnXydtmz1dUP5bp+M2kCEZFJBxn+UHUdA5hryNTSU/bOF
 f1BZAs9tBsyk5591CDu2T5oxMltYW4OrWvvaDERmHSH63CZ0RERte6tAYlT9wqCxeKZi
 vUsQ==
X-Gm-Message-State: AJIora8hAY1cLwb25qnP25SM/TSn2lWq9IJbQfOzTKNeA7MVGzy1YyA6
 bA5WoWU+A6yThv+t5HFKgnrTm/z2QQu9HswupmLoVzpC
X-Google-Smtp-Source: AGRyM1ug5P4h1b+pXEcX9QeTCtAKayEXFlA6DJaubEiiEjF6kK0Q9M0XinZSUalFuCJi1GG2t5/EWxl7RB5h4SmPJts=
X-Received: by 2002:a17:907:8a22:b0:722:e7cf:2665 with SMTP id
 sc34-20020a1709078a2200b00722e7cf2665mr18291509ejc.622.1656427743323; Tue, 28
 Jun 2022 07:49:03 -0700 (PDT)
MIME-Version: 1.0
References: <CACNhcBEFQnPdHLFpMp9ktVV1cKvT6rOFv9LH4iRxz+V4SSzZ4Q@mail.gmail.com>
In-Reply-To: <CACNhcBEFQnPdHLFpMp9ktVV1cKvT6rOFv9LH4iRxz+V4SSzZ4Q@mail.gmail.com>
From: Doug Henderson <djndnbvg@gmail.com>
Date: Tue, 28 Jun 2022 08:48:51 -0600
Message-ID: <CAJ1FpuMDFK9Sfm3MSRrUt6CZYUdiJnOri5sHpNG6yCB5qv1aaw@mail.gmail.com>
Subject: Re: cygpath 3.3.4 : incorrect windows to unix path conversions
To: cygwin <cygwin@cygwin.com>
X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,
 HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.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@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Tue, Jun 28, 2022 at 1:46 AM Timothee Besset <ttimo@ttimo.net> wrote:
>
> Hello,
>
> We are seeing some odd behavior from cygpath.exe when it is copied and used
> outside the normal cygwin installation directory:
>

Don't do this if you just need to convert Linux style file paths to
windows file paths.

Use the cygpath.exe from MSYS2 by installing it and adding its bin
directory to your windows path.

This does not require the cygwin1.dll, and is designed to interoperate
well with windows.

If you need to interact with the cygwin environment from powershell,
start powershell from the bash prompt so PS is embedded in the cygwin
environment. Then all the mounts expected by cygwin programs are
established, so when you run cygwin programs from PS, they run in the
env they expect.


HTH
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

-- 
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
