delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/20/16:39:24

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.4.1 sourceware.org B01D43858D28
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:from:date:message-id:subject:to;
bh=oPrG2ftcaCkz2Vsf9yhIr/GeAA/lcuFYG/Ya+Ruu3RA=;
b=fcpFoT017fkFQUzf8E7YIrn3RNHvE94+pVrlpvrEOWjAlCVjim7gGHociVQnJYwccB
bY9f1p976V/vXs0qhm0YJXZdsyOYqT5pv0s2fSuN563xkKtdokkBOU+rlF7GV7X078k0
nFuGpa0LwAGa6V6TDmtfgD1ycBf4L+faG2tD7DCyYNtVg6I6rp2BMXbrNzbLgv8TKsun
LOMwS4DbpcgL7E9/B8kUkzA1CAr0q5eFkHXtwayMx/C+Hdc2LItpUfwrltdi0GWm+Rvv
bCN5re4epCG+aUuQPJzQ7T53wdtHm82LCecx+TVJEGcQtbAqr0TUWx910/XAci2MsY4R
079w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=oPrG2ftcaCkz2Vsf9yhIr/GeAA/lcuFYG/Ya+Ruu3RA=;
b=rPtZwUBklZ+s7JYCh1md3Esb8Ub4POQ6SBY40T7mkWPUIaMhQNzpWI8RmYDzdnyGQK
NzJ/2TdtXdRSCO7Wge81CPUkC7euRybviNV95VVd0ptv0yY11tNl0gBa/NsW/1qWMPc4
IXGkyOERXvSy3Wk2mjTUuNleTsWFb3hTGLjagCEdhSWEDNkUjLZ89Pyv/3a3TGkhEpTp
1F1V9PvIYp3tQ+534FH7o9duK8ujwa3CfbhXew3nQGYOLnYirWtmE+HzQKLPiofXYx46
nJpdD8AWLzk2BYsavgYBWzlyoq21WjA/umpOn0DgxhBYjPlMp7MAksLCRanHaf/JLtey
JZDQ==
X-Gm-Message-State: AOAM531C4mYVhgtz/2HDCrgxZy4OKahohsfzttAv54taW7crZH459L0C
RVnqaXr+RG1Vwz8bCiEVG0MRQKNvmq1GcuymPMPUm6NXJTjz9A==
X-Google-Smtp-Source: ABdhPJzjk2C7hwDy5fKAkcSjmnIPSO4zutLlpe/Y+LVqC6B/AMSTy+mZ2kzNTmYbnsJFM/QTOCZaDnwaU6I6ir4Umeo=
X-Received: by 2002:ac2:5148:0:b0:442:f24f:1aea with SMTP id
q8-20020ac25148000000b00442f24f1aeamr12268430lfd.20.1645393143970; Sun, 20
Feb 2022 13:39:03 -0800 (PST)
MIME-Version: 1.0
From: Claude TETE <claude DOT tete AT gmail DOT com>
Date: Sun, 20 Feb 2022 22:38:53 +0100
Message-ID: <CACR4mKVj1SAO04iFOukMKEkD0YNUUD=x3Gh4Ypz8TQaPYx=6TA@mail.gmail.com>
Subject: bash from local mounted drive with subst command
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_20, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
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+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi all,

A bash in a local mounted drive, use realpath instead of mounted one
for all child processes.

Example, mount a local folder on Z: drive, go in there and run any
external command:
$ subst Z: C:\\Users
$ cd /cygdrive/z/
$ /bin/pwd
/cygdrive/c/Users

Expected
/cygdrive/w

Issue since Cygwin 3.3 and also with latest snapshot (2022-02-17
11:55:32) after reading this:
https://cygwin.com/pipermail/cygwin/2021-December/250153.html
https://cygwin.com/pipermail/cygwin-patches/2021q4/011583.html

Sincerely,

-- 
Claude TETE
"Those who dream by day are cognizant of many things which escape
 those who dream only by night."
Edgar Allan Poe.

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