[lldb-dev] Should FileSpec::Resolve() look at PATH?

Scott Graham scottmg at chromium.org
Tue Oct 14 19:11:59 PDT 2014


getenv("COMSPEC") rather than "cmd.exe"? I've never seen that be
non-absolute.

On Tue, Oct 14, 2014 at 4:36 PM, Zachary Turner <zturner at google.com> wrote:

> I have an issue on Windows when trying to run shell commands.  We specify
> the shell as "cmd.exe", create a FileSpec out of this, and call
> FileSpec::Resolve.  This ends up making an absolute path out of cmd.exe,
> but it does so by just sticking the working directory onto the front of it,
> which is obviously wrong.
>
> My question is: For FileSpecs that are only filenames, nothing else,
> should we attempt to locate a matching file in PATH, and when we find one
> use the resulting absolute path?
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141014/9a803eef/attachment.html>


More information about the lldb-dev mailing list