aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

Doesn't work on OS X #29

Closed mdkess closed 9 years ago

mdkess commented 9 years ago

If you try to run this on OS X, you get the error:

$ cppman vector
zcat: can't stat: /Users/mdkess/.local/share/man/cplusplus.com/std::vector.3.gz (/Users/mdkess/.local/share/man/cplusplus.com/std::vector.3.gz.Z): No such file or directory

The reason for this is that zcat on OS X doesn't support reading zip files. See here: http://serverfault.com/q/570024

The fix for this is to update the various pager_*.sh scripts in lib/ to use zcat < instead of just zcat, but I'm not sure of the compatibility of this with Linux.

aitjcize commented 9 years ago

Thanks for importing, I'll find a mac to try it :P

cbsmith commented 9 years ago

Alternatively, you can use "gunzip -c" to ensure portability.

aitjcize commented 9 years ago

Should be fixed by the PR