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

X-Recipient: archive-cygwin AT delorie DOT com
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
Subject: Re: Open URLs with # using cygstart.exe
Mime-Version: 1.0 (Apple Message framework v1084)
From: Alexander Konovalov <alexk AT mcs DOT st-and DOT ac DOT uk>
In-Reply-To: <CAAWYfq3O6dZ15u-+t19aKrjyrgrGvR=3Pcosq-MbdFBO7_L69A@mail.gmail.com>
Date: Fri, 13 Jul 2012 14:02:53 +0100
Cc: cygwin AT cygwin DOT com
Message-Id: <F28677F6-FCA9-43AD-8B95-F9B991B33B97@mcs.st-andrews.ac.uk>
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>
To: Dima Pasechnik <dimpase AT gmail DOT com>, rcsaba AT gmail DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q6DD3Pxn026350

Hi Dima, Csaba,

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://?

Thanks,
Alex



On 13 Jul 2012, at 13:38, Dima Pasechnik wrote:

> Hi Alex,
> 
> On 13 July 2012 20:26, Csaba Raduly <rcsaba AT gmail DOT com> wrote:
>> On Fri, Jul 13, 2012 at 2:06 PM, Alexander Konovalov  wrote:
>>> Dear Cygwin experts,
>>> 
>>> I am trying to open the exact location in the html file using my default
>>> browser with the command of the form
>>> 
>>> cygstart.exe file:///C:/somepath/doc/ref/chap31.html#X84F59A2687C62763
>>> 
>>> However, the anchor is ignored, so instead of going to the exact location
>>> it opens the file and stays on the top of the page.
>> 
>> Hi Alexander,
>> 
>> You are doing better than me. For me, cygstart interprets the anchor
>> as part of the filename.
>> 
>> $ 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.
>> 
> 
> 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)
> 
> 
>> Have you tried
>> 
>> cygstart.exe 'file:///C:/somepath/doc/ref/chap31.html#X84F59A2687C62763'
>> 
>> (note the single quotes) ?
> 
> this does not help in my case.
> 
> Dima
> 
>> 
>> 
>> 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 Torvalds
>> "People disagree with me. I just ignore them." -- Linus Torvalds
>> 
>> --
>> 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
>> 


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