From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id B01D43858D28 for ; Sun, 20 Feb 2022 21:39:05 +0000 (GMT) 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 Received: by mail-lf1-x12b.google.com with SMTP id p22so15180415lfu.5 for ; Sun, 20 Feb 2022 13:39:05 -0800 (PST) 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 Date: Sun, 20 Feb 2022 22:38:53 +0100 Message-ID: Subject: bash from local mounted drive with subst command To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2022 21:39:07 -0000 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.