What is wrong? I've tried escaping the space and quotes around the path.Code:$ pwd $ ~/pathwith space $ if [ $(pwd) = ~/pathwith space ]; then echo "true"; fi $ bash: [: too many arguments
What is wrong? I've tried escaping the space and quotes around the path.Code:$ pwd $ ~/pathwith space $ if [ $(pwd) = ~/pathwith space ]; then echo "true"; fi $ bash: [: too many arguments
Last edited by sselt; March 19th, 2013 at 08:55 AM.
Bookmarks