<rdar://problem/13200878>
authorGreg Clayton <gclayton@apple.com>
Thu, 14 Feb 2013 03:54:39 +0000 (03:54 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 14 Feb 2013 03:54:39 +0000 (03:54 +0000)
commit8938f8daf0d6f4494d7b959599a7a007deda3f7a
treedcc6c0cdeff145054c327c403d4461f75ec9bc26
parent6871e5f4e527a202b13b051c215ff37f32811e7b
<rdar://problem/13200878>

When launching in the shell, make sure if you specify a relative path, and if the current working directory has a space in it, that we don't hose the shell invocation.

Currently if we launch with a relative path, we prepend the current working directory to the PATH using:

PATH=`cwd`:$PATH a.out ...

We needed to add quotes around the value for PATH to make sure if any paths in PATH contained spaces, that we don't hose the shell command. Now we do a:

PATH="`cwd`:$PATH" a.out ...

llvm-svn: 175135
lldb/source/Target/Process.cpp