Lines Matching refs:mode
154 * If <mode> greater than 1 file expansion is performed if the result
156 * If <mode> negative, than expansion rules for assignment are applied.
158 char *sh_mactrim(Shell_t *shp, char *str, register int mode)
165 mp->arith = (mode==3);
168 mp->pattern = (mode==1||mode==2);
171 if(mode<0)
172 mp->assign = -mode;
183 if(mode==2)
187 if((mode=path_expand(shp,str,&arglist))==1)
189 else if(mode>1)
1092 register int dolg=0, mode=0;
1110 c = mode;
1111 mode = type = 0;
1116 if(isaletter(mode=fcpeek(0)) || mode=='.')
1129 mode = c;
1132 else if(c=='#' && (isadigit(mode)||fcpeek(1)==RBRACE))
1135 mode = c;
1146 mode = c;
1222 idbuff[0] = mode = c;
1228 sfputc(stkp,mode);
1244 mode = '@';
1280 idbuff[0] = mode = c;
1316 if(isastchar(mode))
1367 else if(ap && (isastchar(mode)||type==M_TREE) && !(ap->nelem&ARRAY_SCAN) && type!=M_SIZE)
1395 c = (type>M_BRACE && isastchar(mode));
1437 mp->atmode = (v && mp->quoted && mode=='@');
1450 if(sh_isoption(SH_NOUNSET) && !isastchar(mode) && (type==M_VNAME || type==M_SIZE))
1468 if(isastchar(mode) && array_elem(ap)> !c)
1511 if(!ap || isastchar(mode))
1519 if(!isastchar(mode))
1627 if(isastchar(mode))
1699 else if(isastchar(mode))
1764 if(mode=='@' && mp->quote && !v && c!='-')
1769 register int d = (mode=='@'?' ':mp->ifs);
1863 if(dolmax==MAX_ARGN && isastchar(mode))
1896 if(mp->split && (!mp->quote || mode=='@'))
1901 mp->atmode = mode=='@';