On Thu, 2002-09-19 at 17:54, Manas Laha wrote:
 
> I'm using what is, by this LUG's standards, _old_ software -- I'm still
> with RH6.2! In less v3.46 (and older ones) lesspipe.sh does not
> determine the filetype using the "file" command. Rather, you have to
> edit this file to say what program you want to run on a file with a
> particular extension. For example, any file with an extension of .1 or
> .2 ... .9 is automatically taken by less to be a manpage and processed
> through groff.
> 
> Also, to transparently make this work with these (presumably ancient)
> versions of less, you have to define an environment variable called
> LESSOPEN that has the value "|/usr/bin/lesspipe.sh %s" -- /usr/bin/less
> is not symlinked to /usr/bin/lesspipe.sh. This is what the less manpage
> terms an "input filter". The input filter does not have to be
> /usr/bin/lesspipe.sh, it could be any filter program.
> 
> I depend fairly heavily on my less input filter (which I have modified
> somewhat to suit my needs) for everyday use of Linux. Has the way less
> works changed in the newer versions? Because if it has, then that's one
> more headache for me when I'm forced to upgrade.
> 


dear mr.laha,

sorry for answering late. i didn't have time to check this out.

now that i have done so, i find you were right. i don't know where i got
the idea that less was symlinked to lesspipe.sh. i think that is
something i myself did on a previous installation. my current one uses
LESSOPEN like you said.

but lesspipe.sh has developed a little since your last upgrade. it now
includes a section that enables it to use /usr/bin/file for determining
file type, though the old method, i.e extension-based identification,
still remains. i don't know whether this is a mandrake-specific
enhancement, for that's what i use, and i haven't seen the generic
script.

'looking forward to meeting you at indra's office today.


- t.


-- 
cogito, ergo es.


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html

Reply via email to