Lines Matching refs:com
302 register char **com; in ed_expand() local
316 com = av; in ed_expand()
322 com = sh_argbuild(ep->sh,&narg,comptr,0); in ed_expand()
335 …if (*com==0 || (narg <= 1 && (strcmp(ap->argval,*com)==0) || (addstar && com[0][strlen(*com)-1]=='… in ed_expand()
347 for(ptrcom=com;*ptrcom;ptrcom++) in ed_expand()
352 sh_menu(sfstderr,narg,com); in ed_expand()
355 ep->e_clist = com; in ed_expand()
374 size += strlen(*com); in ed_expand()
380 char **savcom = com; in ed_expand()
381 while (*com) in ed_expand()
382 size += strlen(cp=fmtx(*com++)); in ed_expand()
383 com = savcom; in ed_expand()
389 com[0] = ap->argval; in ed_expand()
390 com[1] = 0; in ed_expand()
396 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
409 out = strcopy(begin,fmtx(*com)); in ed_expand()
410 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()
458 while (*com) in ed_expand()
461 out = strcopy(out,fmtx(*com++)); in ed_expand()
466 cp = com[-1]; in ed_expand()