delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/07/10:35:42

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=RN+ZLTtFzZ5ImQjQ
qXIWOITKbtftAp8pxgdCyrTeVTBitx3BbU5r9LjqbdWVoCzE2H2/dIIvfvnab3vQ
GzTRZygeNb6lYxXYCUWYvq9tlc7CE+aPbleg0ywDl+HnUAMby4G2k1lWkpkdmL5n
YkH5PNEp64WdV2zqkM1r8RBw+o8=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=REwK+Iy9c5IKQaveYkwwKP
CStA8=; b=Tc1guazlpb+0tilsIOLFRbP/eU50bd5jcflDfj03Hefehk5GAwWDoS
0cbXqlxyBceP18ifbdQVFLas6M4m+ioHkKkqd3IWEfcW5ly+FOhgYgBCAdZqQIt2
1lUYtw3kLczCyKYyXqnWOc6E5j+eHKmt7fg838n+Iyn1kKTfg6vT4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*M:yandex, H*F:D*yandex.ru
X-HELO: forward4j.cmail.yandex.net
Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Thu, 7 Jul 2016 17:32:35 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <85901248.20160707173235@yandex.ru>
To: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>, cygwin AT cygwin DOT com
Subject: Re: cygstart.exe can't open file:///C:/
In-Reply-To: <loom.20160705T200540-33@post.gmane.org>
References: <CAPTiy3MdAdrLnLY5C3+Ye48=eyha_+XW=CEdZBJHodvxJjsGrA AT mail DOT gmail DOT com> <c0862cea-a04a-d50c-e632-33748529090f AT gmail DOT com> <CAPTiy3MMUfDQjDt9D=OBMdLy7KNGhdS5a3AdHS4coTamDZ7Tww AT mail DOT gmail DOT com> <loom DOT 20160705T200540-33 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u67EZcD8012154

Greetings, Brian Inglis!

> Gene Pavlovsky <gene.pavlovsky <at> gmail.com> writes:
>> On 4 July 2016 at 04:10, Juan Miguel Navarro Martínez wrote:
>>> On 2016-07-04 at 01:51, Gene Pavlovsky wrote:
>>>> cygstart‘s manpage says it’s similar to the Windows command-line start command.
>>>> However, cygstart file:///C:/ results in an error message:  Unable to
>>>> start 'C:\cygwin\c\': The specified file was not found.
>>>> The Windows start command opens file:///C:/ links in the default browser
>>>> without a hitch.

>> Juan, thanks for this, it does work. (on my system I setup `cygdrive` to be
>> `/mnt` using fstab, though).
>> But I think the C:/ syntax should be supported as well. After all, `ls C:/`
>> works correctly on Cygwin.

> cygstart file://C:/ works - read the MS DN and MS KB articles on file URIs
> and shlwapi

Which isn't quite right. "file:" is a protocol, "//" is the foreign host mark,
"[.]/" is "current host's filesystem root".
So, I guess, the CORRECT solution (or, rather, workaround) would be an
explicit "." in host name.

cygstart "file://./C:/"

Works here. Please try it yourself.


-- 
With best regards,
Andrey Repin
Thursday, July 7, 2016 17:29:00

Sorry for my terrible english...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019