Open URLs with # using cygstart.exe

Eric Blake eblake@redhat.com
Fri Jul 13 15:37:00 GMT 2012


On 07/13/2012 09:33 AM, Earnie Boyd wrote:
> On Fri, Jul 13, 2012 at 8:06 AM, Alexander Konovalov
> <alexk@mcs.st-and.ac.uk> 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
>>
> 
> In POSIX shells # indicates to ignore the following as a comment.

Only if it is the first character of a shell word.

$ echo a#b #c
a#b

> Quote the # as in \# to avoid it.

Won't help here; as # isn't the first character of the shell word.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120713/10db7681/attachment.sig>


More information about the Cygwin mailing list