Lines Matching defs:shp
57 register Shell_t *shp = context->shp;
84 oldpwd = (char*)shp->pwd;
85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD);
86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD);
101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp))
103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH))
105 shp->cdpathlist = (void*)cdpath;
106 cdpath->shp = shp;
110 oldpwd = path_pwd(shp,1);
137 sfwrite(shp->strbuf,oldpwd,sp+1-oldpwd);
138 sfputr(shp->strbuf,dp,0);
139 dir = sfstruse(shp->strbuf);
146 cdpath = path_nextcomp(shp,cdpath,dir,0);
182 if((rval=chdir(path_relative(shp,stakptr(PATH_OFFSET)))) >= 0)
188 if(rval<0 && *dir=='/' && *(path_relative(shp,stakptr(PATH_OFFSET)))!='/')
222 shp->pwd = pwdnod->nvalue.cp;
223 nv_scan(shp->track_tree,rehash,(void*)0,NV_TAGGED,NV_TAGGED);
224 path_newdir(shp,shp->pathlist);
225 path_newdir(shp,shp->cdpathlist);
235 register Shell_t *shp = context->shp;
254 if(*(cp = path_pwd(shp,0)) != '/')
259 if(shp->gd->lim.fs3d && (flag = mount(e_dot,NIL(char*),FS3D_GET|FS3D_VIEW,0))>=0)