I have seen questions about passing arguments with quotes to a shell script (e.g., this question).
My situation is slightly different:
I am passing an argument to my java program from the bash terminal. The number of possible arguments is finite (20, to be precise), and one of them is "alzheimer's". But if I type
java -cp ... myclass --term alzheimer's
this is what I see:
.. and then I have to ctrl+C out of it.
Everything works fine if it's a single word with all alphanumeric characters. What should I do for this one case with the apostrophe?