[BASH] tilde doesn't expand from user input?
I am learning some bash scripting, and I want to have the user type in a path to some directory and allow the use of ~
however, it seems the tilde charecter cannot be replaced??
echo 'type path to somedir'
read -e -p "> " path
echo 'your path:'
fixed code, thanks.
Last edited by gandalf3; May 22nd, 2013 at 12:56 AM.
Reason: fix code
Intel Pentium 4 Asus P5N32-SLI DELUXE Nvidia nx7900GT 3GB Ram Western Digital WD2500AAKX 250GB Seagate Barracuda 80GB, 160GB Ubuntu 12.04 Arch