Lines Matching defs:opt
194 Shopt_t newflags=shp->options, opt;
197 memset(&opt,0,sizeof(opt));
240 opt=newflags;
243 opt.v[n]=~newflags.v[n];
245 memset(&opt,0xff,sizeof(opt));
253 && (is_option(&opt,SH_INTERACTIVE)
254 || is_option(&opt,SH_RESTRICTED)
255 || is_option(&opt,SH_RESTRICTED2)
256 || is_option(&opt,SH_BASH)
257 || is_option(&opt,SH_LOGIN_SHELL)))
265 on_option(&opt,n&0xff);
267 off_option(&opt,n&0xff);
276 off_option(&opt,SH_NOEXEC);
277 if(is_option(&opt,SH_VI)||is_option(&opt,SH_EMACS)||is_option(&opt,SH_GMACS))
284 newflags.v[n] |= opt.v[n];
288 newflags.v[n] &= ~opt.v[n];
294 else if(!(setflag&SET_NOARGS)) /* no -s,-u but args, ret=0 if opt&mask==mask */
297 ret+=((newflags.v[n]&opt.v[n])!=opt.v[n]);
300 sh_printopts(newflags,verbose,&opt);