Bugzilla – Bug 116779
less does not recognize .cab files
Last modified: 2005-09-13 15:47:34 UTC
If the variable LESS_ADVANCED_PREPROCESSOR="yes", the utility "less" should list files in .cab archives. It does not work on SL 10.0 because the utility "file" returns another description for such files now. /usr/bin/file prints: --- cut --- $> file sample.cab sample.cab: Microsoft Cabinet archive data, 108346 bytes, 144 files --- cut --- /usr/bin/lessopen.sh searches for: --- cut --- *Microsoft\ cabinet\ file\ data*) --- cut --- How to reproduce it? 1. export LESS_ADVANCED_PREPROCESSOR="yes" 2. less sample.cab It should list the files in the sample.cab archive but it shows the binary content now.
I've changed it to *Microsoft\ Cabinet\ *\ data*) so that it works with both versions of the file(1) command.