Lines Matching defs:pattern
93 int path_expand(Shell_t *shp,const char *pattern, struct argnod **arghead)
123 extra += scantree(shp->alias_tree,pattern,arghead);
124 extra += scantree(shp->fun_tree,pattern,arghead);
141 * instead of being an augmented shell pattern.
193 if(memcmp(pattern,"~(N",3)==0)
195 glob(pattern, flags, 0, gp);
217 * scan tree and add each name that matches the given pattern
219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead)
228 if(strmatch(cp=nv_name(np),pattern))
432 /* generate each pattern and put on the todo list */