I also ran into this bug recently, and it's not clear when it happens
that it's an error, you're just put in the normal less buffer and it
says "No catdoc available" which at first made me assume that was the
contents of the file.

Unlike the original submitter, my file actually was an MS Word file
format file, but like the original submitter the problem was that
catdoc wasn't installed and less was trying to be clever.

If less is going to be clever,

1.) I agree with the original submitter that it shouldn't pay attention
to filename extensions. Maybe use libmagic instead?

2.) If catdoc doesn't exist then it should either
  a.) fall back to the same behavior as more (just display the raw
    contents)
  b.) do what ISTR it doing in the past and asking if I really want to
    display a binary file
  c.) throw a real error explaining that you can't use less on MS Word
    doc files until you install catdoc

Thanks,

-- 
Matt Taggart
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to