chrisbra / wikipedia2text

A commandline tool for querying the Wikipedia
Other
32 stars 4 forks source link

Breaks on ' in query #3

Closed codelamb closed 7 years ago

codelamb commented 7 years ago

It seems a program breaks on input containing ' , e.g. $wikipedia2text O'Henry

chrisbra commented 7 years ago

Hm? Cannot reproduce. This will redirect to http://en.wikipedia.org/wiki/O%27Henry Which I would say is correct. Where do you think it should redirect to?

codelamb commented 7 years ago

I used it from Bash on Windows 10, maybe there's the rub, it has limited functionality. Sorry I didn't mention that.

[image: Įterptasis vaizdas 1]

2017-01-28 22:48 GMT+02:00 Christian Brabandt notifications@github.com:

Hm? Cannot reproduce. This will redirect to http://en.wikipedia.org/wiki/ O%27Henry Which I would say is correct.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chrisbra/wikipedia2text/issues/3#issuecomment-275873679, or mute the thread https://github.com/notifications/unsubscribe-auth/ALjdMuqb3LuJfTn6DTbZasWUy6c2n-Ncks5rW6m7gaJpZM4LwjoM .

xtaran commented 7 years ago

@codelamb: What's the exact error message? In every bourne-shell compatible shell (like e.g. bash) you need to quote single quotes in commands. Try using one of these:

wikipedia2text O\'Henry
wikipedia2text "O'Henry"
codelamb commented 7 years ago

These two works fine. Thank you for suggestion. Bash does not return any error code, just empty line beginning with symbol ">" and prompt. I can escape it only with ctrl + c