Lines Matching refs:com
286 register char **com; in ed_expand() local
300 com = av; in ed_expand()
306 com = sh_argbuild(ep->sh,&narg,comptr,0); in ed_expand()
319 …if (*com==0 || (narg <= 1 && (strcmp(ap->argval,*com)==0) || (addstar && com[0][strlen(*com)-1]=='… in ed_expand()
329 for(ptrcom=com;*ptrcom;ptrcom++) in ed_expand()
334 sh_menu(sfstderr,narg,com); in ed_expand()
337 ep->e_clist = com; in ed_expand()
356 size += strlen(*com); in ed_expand()
362 char **savcom = com; in ed_expand()
363 while (*com) in ed_expand()
364 size += strlen(cp=fmtx(*com++)); in ed_expand()
365 com = savcom; in ed_expand()
371 com[0] = ap->argval; in ed_expand()
372 com[1] = 0; in ed_expand()
378 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
391 out = strcopy(begin,fmtx(*com)); in ed_expand()
392 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()
440 while (*com) in ed_expand()
443 out = strcopy(out,fmtx(*com++)); in ed_expand()
448 cp = com[-1]; in ed_expand()