public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dima Pasechnik <dimpase@gmail.com>
To: Alexander Konovalov <alexk@mcs.st-and.ac.uk>
Cc: cygwin@cygwin.com
Subject: Re: Open URLs with # using cygstart.exe
Date: Fri, 13 Jul 2012 14:45:00 -0000	[thread overview]
Message-ID: <CAAWYfq3Je8YpvvYT43ZNeGCRJ-WtTa258FwKPKteMvUaC_8MJw@mail.gmail.com> (raw)
In-Reply-To: <F28677F6-FCA9-43AD-8B95-F9B991B33B97@mcs.st-andrews.ac.uk>

On 13 July 2012 21:02, Alexander Konovalov <alexk@mcs.st-and.ac.uk> wrote:
> 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://?

One can run a local webserver and talk to it via http. Given that the
webserver might be a very lightweight one, it would not be much of an
overhead.

(Of course I know it would add a bit to the complexity of running GAP
on Windows :))

Dima

>
> Thanks,
> Alex
>
>
>
> On 13 Jul 2012, at 13:38, Dima Pasechnik wrote:
>
>> Hi Alex,
>>
>> On 13 July 2012 20:26, Csaba Raduly <rcsaba@gmail.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

  parent reply	other threads:[~2012-07-13 14:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 12:06 Alexander Konovalov
2012-07-13 12:27 ` Csaba Raduly
2012-07-13 12:38   ` Dima Pasechnik
2012-07-13 13:03     ` Alexander Konovalov
2012-07-13 13:19       ` Ryan Johnson
2012-07-13 13:21         ` Ryan Johnson
2012-07-14  7:25           ` Dima Pasechnik
2012-07-13 14:45       ` Dima Pasechnik [this message]
2012-07-14  2:05       ` Andrey Repin
2012-07-14  2:38       ` Ken Brown
2012-07-13 13:14 ` Adam Dinwoodie
2012-07-13 15:33 ` Earnie Boyd
2012-07-13 15:37   ` Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAWYfq3Je8YpvvYT43ZNeGCRJ-WtTa258FwKPKteMvUaC_8MJw@mail.gmail.com \
    --to=dimpase@gmail.com \
    --cc=alexk@mcs.st-and.ac.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).