[Bash] Running java with space in the argument

view full story

https://bbs.archlinux.org – Hi. I think this should be pretty easy, but I just can't. Hopefully somebody could help me.Simply put: I want to run java command where the argument has a space in filename.This is my script:#!/bin/bash TESTPATH="/home/laite/bin/test dir" EXEC="java -jar \"$TESTPATH\"/some.js" echo $EXEC ${EXEC}and the output:# laite@laite-arch ~/bin > ./java_test.sh java -jar "/home/laite/bin/test dir"/some.js Error: Unable to access jarfile "/home/laite/bin/test laite https://bbs.archlinux.org/profile.php?id=49459 2013-08-06T06:24:21Z (HowTos)