Lines Matching defs:shp
55 register Shell_t *shp = context->shp;
71 shp->xargexit = 1;
89 return(whence(shp,argv, flags));
98 register Shell_t *shp = context->shp;
130 return(whence(shp, argv, flags));
133 static int whence(Shell_t *shp,char **argv, register int flags)
167 if((np=nv_search(name,shp->alias_tree,0))
187 root = (flags&F_FLAG)?shp->bltin_tree:shp->fun_tree;
223 if(path_search(shp,name,&pp,2+(aflag>1)))
236 cp = path_fullname(shp,cp);
251 if(!np && (np=nv_search(name,shp->track_tree,0)))
252 sfprintf(sfstdout,"%s %s %s/%s\n",name,sh_translate(is_talias),path_pwd(shp,0),cp);
259 if(*cp=='/' && (np=nv_search(cp,shp->bltin_tree,0)))