<div class="gmail_quote">On 29 July 2011 11:57, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word"><br><div><div><div>On Jul 29, 2011, at 11:30 AM, Nick Lewycky wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">



<div>> The only other effect of this change is that the static analysis will now<br>> respect $PWD when reporting the directory of the files in its HTML output. I<br>> think that's fine.<br><br></div>Uhm, this *really* doesn't seem like the right thing to do.  This should go into a client of this API that cares, not being in such a low level API.<br>



</blockquote><div><br></div><div>Reverted in r136477. I honestly don't see how it's any more or less correct than using getcwd, since $PWD is the current directory per definition.</div></span></blockquote><div><br>



</div></div><div>If it's the current directory by definition, why doesn't getcwd return it?</div></div></div></blockquote><div><br></div><div>POSIX specs that the value returned by getcwd may not contain symbolic links. PWD may contain symbolic links because of how it's required to be set by "cd". In either case it needs to be the current directory, but they can be different strings.</div>


<div><br></div>
</div>