From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 1B3A13857C6C for ; Mon, 13 Dec 2021 11:06:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1B3A13857C6C Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from Express5800-S70 (v050141.dynamic.ppp.asahi-net.or.jp [124.155.50.141]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 1BDB6MDf032531 for ; Mon, 13 Dec 2021 20:06:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 1BDB6MDf032531 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1639393583; bh=d+9SxBb+7SfmjURPOrKsqLLX8CzS1k0PPqgcD3adp5U=; h=Date:From:To:Subject:In-Reply-To:References:From; b=JtFIvM3n5WLl6gU5ZeAw9e8umati+T+e962Drr6lyWFe4qPKSxrRLtsbP9ilut1mW +BbDkl7AnhTK06FHgS7/xLCg/72fWJ3j1kmlyog5kQaEdthym6t7+W4fNUKDDLS7yk Lb0OKvWOb+k7zQTE3b55ymCoepNqQ+ySoO4rmlVUVOufKxGYbz6esf8EJYqaRvn6wi SrSYhE/9/V/jevRCAypsBxeq5fSpiYwTkVG1z3tZPjlTdss0RIQ6YGr5X1BRCm03el +zOgswOICTkibnGetCQ0qblpf8han638vfnyMBe4wPf/Z5o3QHABsq1VxvL3QhQhBM oVRSOwaAjvOYQ== X-Nifty-SrcIP: [124.155.50.141] Date: Mon, 13 Dec 2021 20:06:23 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: Starting CMD from a bash shell with current directory on a mounted/network drive results in an incorrect current directory Message-Id: <20211213200623.606ba51691c1209a2f2c2a75@nifty.ne.jp> In-Reply-To: <015801d7f00f$b117ed70$1347c850$@dyalog.com> References: <015801d7f00f$b117ed70$1347c850$@dyalog.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 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: Mon, 13 Dec 2021 11:07:00 -0000 On Mon, 13 Dec 2021 10:53:41 -0000 "john daintree" wrote: > I've just upgraded a machine from Windows 10 to Windows 11. Part of my work > process is now broken because when starting cmd from Cygwin with the current > directory on a mounted drive I get the following error/warning/issue: > > > > > > /cygdrive/j$ cmd > > '\\nas00.\devt\users\johnd' > > CMD.EXE was started with the above path as the current directory. > > UNC paths are not supported. Defaulting to Windows directory. > > Microsoft Windows [Version 10.0.22000.348] > > (c) Microsoft Corporation. All rights reserved. > > > > C:\Windows> > > > > > > The drive J: is mounted as something on our network (I've redacted a bit of > the path, for probably no good reason) > > > > Is there a workaround? Or is this something that can be fixed in Cygwin? Thanks for the report. This was already fixed recently in git head. https://cygwin.com/pipermail/cygwin/2021-December/250153.html https://cygwin.com/pipermail/cygwin-patches/2021q4/011583.html Please wait for the next cygwin release or new developers snapshot. -- Takashi Yano