aitjcize / cppman

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

pager.sh: 61: [: vim: unexpected operator #64

Closed erreina closed 7 years ago

erreina commented 7 years ago

Hi, when using a recently installed cppman I am getting this error all the time:

~$ cppman string /usr/local/lib/python3.4/dist-packages/cppman/lib/pager.sh: 61: [: vim: unexpected operator Vim: Reading from stdin...

The lines 61 of that file is:

if [ "$pager_type" == "vim" ]; then

but I think it should be:

if [ "$pager_type" = "vim" ]; then

In fact, when removing the extra "=" that error disappears.

aitjcize commented 7 years ago

This is fixed in the git repo: https://github.com/aitjcize/cppman/blob/master/cppman/lib/pager.sh#L61

The next release will contain the fix. Thanks!

erreina commented 7 years ago

Sorry, I did not realize that it was already fixed. I though I installed directly from github instead of using pip install. Thanks.