Quote ~ to avoid string substitution in bash 4.3