X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=cIjm RzA04cEufRt9H7UiQv7+xMBEzKfX7mrL0QMUxRfGjUuYaqfrVbc7Re2A075ciECh lb/IN3LuZDjB6m2s2Ui6uGJ6sQelbJQLgdFX0wcV55FhkJ7GCg9AbO1Z+wzZVeU3 PDgDkrFyYcjVUOXu61KQ6dAjnoGLZT52hHRO+5A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=TbBl+q3cFm NjTh/wVThrgmZEkv4=; b=Yh0f7TEP6S2PEApPD24TtgTdpeY5DQ3MYYTFzESNoD aIIEh5cFIeUFaDya4YfNaynNofiNg6DEVD/lgfCve5NyKQcC4p4ByztF4f5Wqu7x PzBrZ6QSwoIIxzlM8PE84Zr7o3pDX582hzgP0OTsAgBwAfCCHQo4K9d+Frktn5Lf Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:5723905, H*i:sk:5723905, H*MI:sk:5723905, Hx-languages-length:1059 X-HELO: mail-wm0-f46.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KOGpoceYwA3qXNZz81dlrd/9NTS8owLA7mNdUx0cXKU=; b=hAoQMm5+HrIH+csmoT5DsVlo13THD3DfeUFt4RkepCPhGnsjvisjHp74Jr7ZUjwPS2 aRJZUIJYK7fGlXMG0nvE+mWARqXLEsRM8yYbQP7D4gKgN7rn7F0T1SN6i7hxEHnVI/eQ 8Qo7vnB+EZIf3j9+wFogTyahd4C9xsW2mR7pqGoKPO0003CVN3YW0pS//CHVINVZtjRB UrYRnU5hVoIcDCg6PiB2ebPiUMEcJ7B1gL/XpB1Ltdjjgxd7XtQCAJNpB58iv6R/++0l guPruuFnGm7+hbr6ppHDiF+amR4A+zXScUktzS7lPK4j6lMdVzH+kZpOniqA4i1YFyqA Se7A== X-Gm-Message-State: AOPr4FVuZKesTFJSjSCTGeeZCDFFOYo1JCY83BTxPUl8Y0RNpComVLbxUNZGHrNIJiK+1Q== X-Received: by 10.194.175.70 with SMTP id by6mr23759123wjc.19.1461959372874; Fri, 29 Apr 2016 12:49:32 -0700 (PDT) Date: Fri, 29 Apr 2016 20:49:30 +0100 From: Adam Dinwoodie To: cygwin AT cygwin DOT com Subject: Re: "man" hangs attempting to access UNC paths Message-ID: <20160429194930.GV2345@dinwoodie.org> References: <1461777815571-126622 DOT post AT n5 DOT nabble DOT com> <20160428092204 DOT GR2345 AT dinwoodie DOT org> <1461884948878-126637 DOT post AT n5 DOT nabble DOT com> <1461947529357-126661 DOT post AT n5 DOT nabble DOT com> <57239054 DOT 1000809 AT redhat DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57239054.1000809@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes On Fri, Apr 29, 2016 at 10:48:20AM -0600, Eric Blake wrote: > On 04/29/2016 10:32 AM, joeking wrote: > > So I figured out what causes this - but I don't know why. > > > > "/" ended up in my path - from some imported configuration in .bashrc. > > When I don't have "/" in the path, then man works. > > > > So, given that, why would that cause man to reference UNC paths? > > Probably because man has a bug that causes it to use > ${name_from_path}/suffix, which works fine if ${name_from_path} is > anything other than /, but which creates a UNC path if it is exactly /. > > And the bug is not noticed on other platforms where // and / are identical. This is, to be clear, a bug, albeit a bug that manifests pretty much only on Cygwin: POSIX defines paths starting with // as being down to the implementation to assign meaning, so they're not portable. Most POSIX or POSIX-like operating systems interpret // as identical to /, hence it not causing a problem most of the time, but Cygwin uses it for UNC paths. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple