Re: small issue with filenames and lynx

Bela Lubkin <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
Thorsten Glaser wrote:

> Karl Anliot dixit:
>
> >This is lynx's error when it encounters a filename like "important:
> test.htm"
>
> In the place where lynx expects an URL, a filename is not the
> correct thing to give to it, even if it, as a convenience (I
> hate Firefox for not offering the same), often accepts it.
>
> Place file://$PWD in front of it (file:///home/<E2><80><A6> because the
> cwd starts with a slash, you need three).

That is the strong general solution.  This is also sufficient for the
particular case:

    $ lynx ./'important: test.htm'

(or whatever quoting method you're using)

FWIW, Firefox is happily doing this (accepting bare filename as a
shorthand for file://path-to-file).  These worked:

    $ firefox zort.html
    $ firefox ./zort.html
    $ firefox ./zo:rt.html

-- while this failed:

    $ firefox zo:rt.html

Firefox & Lynx therefore accepted exactly the same 3-of-4.  (FF
converted the last one into a search, rather than failing it as an
invalid URL scheme.  That still constitutes failure for the purpose of
'open this file here'...)

>Bela<

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.