From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7829 invoked by alias); 13 Jul 2012 13:03:20 -0000 Received: (qmail 7817 invoked by uid 22791); 13 Jul 2012 13:03:19 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from twopi.mcs.st-and.ac.uk (HELO mcs.st-and.ac.uk) (138.251.192.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jul 2012 13:03:00 +0000 Received: from 8afbf3ff.st-andrews.ac.uk (8afbf3ff.st-andrews.ac.uk [138.251.243.255]) (authenticated bits=0) by mcs.st-and.ac.uk (8.13.8/8.13.8) with ESMTP id q6DD2wff026858 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 13 Jul 2012 14:02:58 +0100 Subject: Re: Open URLs with # using cygstart.exe Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Alexander Konovalov In-Reply-To: Date: Fri, 13 Jul 2012 13:03:00 -0000 Cc: cygwin@cygwin.com Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Dima Pasechnik , rcsaba@gmail.com Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00268.txt.bz2 Hi Dima, Csaba, Thanks for replies. I am running 64-bit Windows 7, Cygwin 1.7.11 (2012-02-2= 4). The default browser is Chrome, but I've tried with Firefox and InternetExpl= orer - 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= ://? Thanks, Alex On 13 Jul 2012, at 13:38, Dima Pasechnik wrote: > Hi Alex, >=20 > On 13 July 2012 20:26, Csaba Raduly wrote: >> On Fri, Jul 13, 2012 at 2:06 PM, Alexander Konovalov wrote: >>> Dear Cygwin experts, >>>=20 >>> I am trying to open the exact location in the html file using my default >>> browser with the command of the form >>>=20 >>> cygstart.exe file:///C:/somepath/doc/ref/chap31.html#X84F59A2687C62763 >>>=20 >>> However, the anchor is ignored, so instead of going to the exact locati= on >>> it opens the file and stays on the top of the page. >>=20 >> Hi Alexander, >>=20 >> You are doing better than me. For me, cygstart interprets the anchor >> as part of the filename. >>=20 >> $ cygstart file:///www/pages/html401/sgml/dtd.html#inline >> Unable to start 'C:\cygwin17\www\pages\html401\sgml\dtd.html#inline': >> The specified file was not found. >>=20 >=20 > Same here. > Interestingly, it works just fine with the remote URL - it brings up > the page in the right place. > (OK, so here it's Windows 7 (32-bit) running Cygwin 1.7.15, and the > default browser is Firefox) >=20 >=20 >> Have you tried >>=20 >> cygstart.exe 'file:///C:/somepath/doc/ref/chap31.html#X84F59A2687C62763' >>=20 >> (note the single quotes) ? >=20 > this does not help in my case. >=20 > Dima >=20 >>=20 >>=20 >> Csaba >> -- >> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ >> The Tao of math: The numbers you can count are not the real numbers. >> Life is complex, with real and imaginary parts. >> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus T= orvalds >> "People disagree with me. I just ignore them." -- Linus Torvalds >>=20 >> -- >> 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 >>=20 -- 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