Lines Matching refs:mode
146 * If <mode> greater than 1 file expansion is performed if the result
148 * If <mode> negative, than expansion rules for assignment are applied.
150 char *sh_mactrim(Shell_t *shp, char *str, register int mode)
157 mp->arith = (mode==3);
160 mp->pattern = (mode==1||mode==2);
163 if(mode<0)
164 mp->assign = -mode;
175 if(mode==2)
179 if((mode=path_expand(str,&arglist))==1)
181 else if(mode>1)
1031 register int dolg=0, mode=0;
1049 c = mode;
1050 mode = type = 0;
1055 if(isaletter(mode=fcpeek(0)) || mode=='.')
1068 mode = c;
1071 else if(c=='#' && (isadigit(mode)||fcpeek(1)==RBRACE))
1074 mode = c;
1085 mode = c;
1154 idbuff[0] = mode = c;
1160 sfputc(stkp,mode);
1175 mode = '@';
1211 idbuff[0] = mode = c;
1238 if(isastchar(mode))
1278 else if(ap && (isastchar(mode)||type==M_TREE) && !(ap->nelem&ARRAY_SCAN) && type!=M_SIZE)
1306 c = (type>M_BRACE && isastchar(mode));
1375 if(isastchar(mode) && array_elem(ap)> !c)
1418 if(!ap || isastchar(mode))
1426 if(!isastchar(mode))
1532 if(isastchar(mode))
1606 else if(isastchar(mode))
1669 if(mode=='@' && mp->quote && !v && c!='-')
1674 register int d = (mode=='@'?' ':mp->ifs);
1766 if(dolmax==MAX_ARGN && isastchar(mode))
1799 if(mp->split && (!mp->quote || mode=='@'))