Q:

ksh cannot cp from location with space in it?

I am trying to do the following in ksh but keep getting cannot stat message for the cp command:
 JMX_ROOT=/bfs-build/build-info/mep_mainline-Linux.latest/core/mainline/automation

 SMOKE_JMX_LOCATION=$JMX_ROOT/"Smoke Set"/*.*

 cp $SMOKE_JMX_LOCATION /var/tmp/tempor

Any ideas, have tried putting quotes around the various variables but with no luck. Think its something to do with the spaces in "Smoke Set" but don't how how to work it.
Many thanks.

A:

JMX_ROOT=/bfs-build/build-info/mep_mainline-Linux.latest/core/mainline/automation
SMOKE_JMX_LOCATION="$(echo $JMX_ROOT/"Smoke Set"/*.*)"
cp "$SMOKE_JMX_LOCATION" /var/tmp/tempor

