On Thu, Feb 17, 2011 at 9:54 AM, Siddhesh Poyarekar
<[email protected]> wrote:
> Thank you for your response. The default currently does track aliases,
> but never uses them. Only whence has access to the tracked aliases due
> to:
>
I'm afraid my patch still hasn't corrected the tracked aliases
behaviour of exec. In xec.c sh_exec:
@@ -1147,7 +1147,17 @@ int sh_exec(register const Shnode_t *t,
else
{
if((np=nv_search(com0,shp->track_tree,0)) && !nv_isattr(np,NV_NOALIAS)
&& np->nvalue.cp)
np=nv_search(nv_getval(np),shp->bltin_tree,0);
The nv_search for bltin_tree clears the tracked alias from the stack,
making the next exec pick from path once again.
--
Siddhesh Poyarekar
http://siddhesh.in
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers