Ismael Cordeiro <[EMAIL PROTECTED]> said:
> On Sun, 5 Mar 2000, Morten Bo Johansen wrote:
>
>>> If your less displays the directory of a zip file then it's
>>> using an input preprocessor through the LESSOPEN environment
>>> variable or a script.
> >
> > It does and you're right about the cause. I didn't even know that.
>
> Could you tell me how it's being done on your site?
Yes, it's the default SuSE 6.2 setup that has the following
lines in /etc/profile:
LESSOPEN="|lesspipe.sh %s"
export LESSOPEN
and the script, lesspipe.sh, I have attached here.
Funnily enough it won't work for me with files having the
extension *.tar.gz while it does work if the extension is *.tgz
even if I believe I have the correct definitions in lynx.cfg,
i.e.
VIEWER:application/x-tar-gz:less %s:NON_XWINDOWS
VIEWER:application/x-gzip:less %s:NON_XWINDOWS
For *.tar.gz files it presents me with the alert that you cited
earlier:
"/tmp/L2992-4TMP.html" may be a binary file. See it anyway?
I wonder why that is.
Morten
lesspipe.sh