Lines Matching refs:begin
212 char *av[2], *begin , *dir=0; in ed_expand() local
263 begin = out = find_begin(outbuff,last,0,&var); in ed_expand()
294 if(*begin=='~' && !strchr(begin,'/')) in ed_expand()
303 char *cp=begin, *left=0, *saveout="."; in ed_expand()
308 …xtprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' ))) in ed_expand()
318 begin += (dir-begin); in ed_expand()
324 if(begin>outbuff && (begin[-1]=='"' || begin[-1]=='\'')) in ed_expand()
325 begin--; in ed_expand()
359 size = *eol - (out-begin); in ed_expand()
367 saveout = begin; in ed_expand()
396 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
404 *begin++ = var; in ed_expand()
405 out = strcopy(begin,cp); in ed_expand()
409 out = strcopy(begin,fmtx(*com)); in ed_expand()
413 out = strcopy(begin,*com++); in ed_expand()
417 while (*com && *begin) in ed_expand()
420 out = overlaid(begin,path_basename(*com++),nocase); in ed_expand()
422 out = overlaid(begin,*com++,nocase); in ed_expand()
434 …if(*cp=='/' && (pp=path_dirfind(ep->sh->pathlist,cp,'/')) && (np=nv_search(begin,ep->sh->track_tre… in ed_expand()
436 out = strcopy(begin,cp); in ed_expand()
439 if((cp=fmtx(begin))!=begin) in ed_expand()
440 out = strcopy(begin,cp); in ed_expand()
441 if(var=='$' && begin[-1]=='{') in ed_expand()
447 else if((cp=fmtx(begin))!=begin) in ed_expand()
449 out = strcopy(begin,cp); in ed_expand()
453 if(*begin==0) in ed_expand()
469 if(var=='$' && begin[-1]=='{') in ed_expand()