Make sure ~ is handled correctly with -c