The keytool does not resolve impartial directories. Ie this works:
keytool -keystore "/users/me/Desktop" ...
This doesn't:
keytool -keystore "~/Desktop" ...
Is there something that I could call like this:
keytool -keystore "$(<cmd> ~/Desktop)" ...
Update
I guess I should actually be more specific:
This is really what I am doing:
myVar=~/Desktop
<allow user to overwrite default value of myVar>
keytool -keystore "$myVar" ...
I don't think that it is safe to have $myVar unquoted in the keytool command in case someone puts some malicious code in there.