delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/13/09:19:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50002053.4050706@cs.utoronto.ca>
Date: Fri, 13 Jul 2012 09:19:15 -0400
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Open URLs with # using cygstart.exe
References: <B55E4FF0-6EBE-496B-89F5-B42173750B25 AT mcs DOT st-andrews DOT ac DOT uk> <CAEhDDbDOGOkiR3HH=0L2Tr272TVVPpRF0yiwWZHj7RnyFJjbnQ AT mail DOT gmail DOT com> <CAAWYfq3O6dZ15u-+t19aKrjyrgrGvR=3Pcosq-MbdFBO7_L69A AT mail DOT gmail DOT com> <F28677F6-FCA9-43AD-8B95-F9B991B33B97 AT mcs DOT st-andrews DOT ac DOT uk>
In-Reply-To: <F28677F6-FCA9-43AD-8B95-F9B991B33B97@mcs.st-andrews.ac.uk>
X-IsSubscribed: yes
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

On 13/07/2012 9:02 AM, Alexander Konovalov wrote:
> Thanks for replies. I am running 64-bit Windows 7, Cygwin 1.7.11 (2012-02-24).
> The default browser is Chrome, but I've tried with Firefox and InternetExplorer -
> same result whenever I'm using single quotes or not with each of the three
> browsers. Remote URLs indeed work fine. With the local URL address line of the
> browser contains truncated URL without '#...' part so maybe cygstart parses
> its argument differently dependently whether it starts with file:// or http://?
Just say no to http://cygwin.com/acronyms/#TOFU

Also, you've got a fairly old version of cygwin there...

Cygstart does not actually parse general URIs. For a long time it had a 
special case that tested explicitly for `http:', and recently added 
`mailto:' after a similar issue arose [1]. Ironically, most URIs seem to 
work precisely because cygstart *doesn't* know what to do with them and 
passes them along as-is, giving Windows a chance to do the right thing.

[1] http://cygwin.com/ml/cygwin/2012-03/msg00810.html
Ryan



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

- Raw text -


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