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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 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