lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] small issue with filenames and lynx


From: Bela Lubkin
Subject: Re: [Lynx-dev] small issue with filenames and lynx
Date: Thu, 3 Oct 2019 18:55:16 -0700

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<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]