Lines Matching refs:begin
201 char *av[2], *begin , *dir=0; in ed_expand() local
247 begin = out = find_begin(outbuff,last,0,&var); in ed_expand()
278 if(*begin=='~' && !strchr(begin,'/')) in ed_expand()
287 char *cp=begin, *left=0, *saveout="."; in ed_expand()
292 …xtprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' ))) in ed_expand()
302 begin += (dir-begin); in ed_expand()
308 if(begin>outbuff && (begin[-1]=='"' || begin[-1]=='\'')) in ed_expand()
309 begin--; in ed_expand()
341 size = *eol - (out-begin); in ed_expand()
349 saveout = begin; in ed_expand()
378 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
386 *begin++ = var; in ed_expand()
387 out = strcopy(begin,cp); in ed_expand()
391 out = strcopy(begin,fmtx(*com)); in ed_expand()
395 out = strcopy(begin,*com++); in ed_expand()
399 while (*com && *begin) in ed_expand()
402 out = overlaid(begin,path_basename(*com++),nocase); in ed_expand()
404 out = overlaid(begin,*com++,nocase); in ed_expand()
416 …if(*cp=='/' && (pp=path_dirfind(sh.pathlist,cp,'/')) && (np=nv_search(begin,sh.track_tree,NV_ADD))) in ed_expand()
418 out = strcopy(begin,cp); in ed_expand()
421 if((cp=fmtx(begin))!=begin) in ed_expand()
422 out = strcopy(begin,cp); in ed_expand()
423 if(var=='$' && begin[-1]=='{') in ed_expand()
429 else if((cp=fmtx(begin))!=begin) in ed_expand()
431 out = strcopy(begin,cp); in ed_expand()
435 if(*begin==0) in ed_expand()
451 if(var=='$' && begin[-1]=='{') in ed_expand()