Lines Matching refs:argv

60 int    b_exec(int argc,char *argv[], void *extra)  in b_exec()  argument
68 while (n = optget(argv, sh_optexec)) switch (n) in b_exec()
84 argv += opt_info.index; in b_exec()
87 if(*argv) in b_exec()
88 B_login(0,argv,(void*)&logdata); in b_exec()
98 int B_login(int argc,char *argv[],void *extra) in B_login() argument
113 errormsg(SH_DICT,ERROR_exit(1),e_restricted,argv[0]); in B_login()
142 pname = argv[0]; in B_login()
144 argv[0] = logp->arg0; in B_login()
153 path_exec(pname,argv,NIL(struct argnod*)); in B_login()
159 int b_let(int argc,char *argv[],void *extra) in b_let() argument
165 while (r = optget(argv,sh_optlet)) switch (r) in b_let()
174 argv += opt_info.index; in b_let()
175 if(error_info.errors || !*argv) in b_let()
177 while(arg= *argv++) in b_let()
182 int b_eval(int argc,char *argv[], void *extra) in b_eval() argument
187 while (r = optget(argv,sh_opteval)) switch (r) in b_eval()
198 argv += opt_info.index; in b_eval()
199 if(*argv && **argv) in b_eval()
202 sh_eval(sh_sfeval(argv),0); in b_eval()
207 int b_dot_cmd(register int n,char *argv[],void* extra) in b_dot_cmd() argument
220 while (n = optget(argv,sh_optdot)) switch (n) in b_dot_cmd()
229 argv += opt_info.index; in b_dot_cmd()
230 script = *argv; in b_dot_cmd()
276 shp->st.cmdname = argv[0]; in b_dot_cmd()
281 if(np || argv[1]) in b_dot_cmd()
282 argsave = sh_argnew(shp,argv,&saveargfor); in b_dot_cmd()
301 if((np || argv[1]) && jmpval!=SH_JMPSCRIPT) in b_dot_cmd()
324 int b_true(int argc,register char *argv[],void *extra) in b_true() argument
327 NOT_USED(argv[0]); in b_true()
335 int b_false(int argc,register char *argv[], void *extra) in b_false() argument
338 NOT_USED(argv[0]); in b_false()
343 int b_shift(register int n, register char *argv[], void *extra) in b_shift() argument
347 while((n = optget(argv,sh_optshift))) switch(n) in b_shift()
358 argv += opt_info.index; in b_shift()
359 n = ((arg= *argv)?(int)sh_arith(arg):1); in b_shift()
370 int b_wait(int n,register char *argv[],void *extra) in b_wait() argument
373 while((n = optget(argv,sh_optwait))) switch(n) in b_wait()
384 argv += opt_info.index; in b_wait()
385 job_bwait(argv); in b_wait()
392 int b_fg(int n,char *argv[],void *extra){}
393 int b_disown(int n,char *argv[],void *extra){}
395 int b_bg(register int n,register char *argv[],void *extra) in b_bg() argument
397 register int flag = **argv; in b_bg()
400 if(*argv[0]=='f') in b_bg()
402 else if(*argv[0]=='d') in b_bg()
404 while((n = optget(argv,optstr))) switch(n) in b_bg()
415 argv += opt_info.index; in b_bg()
422 if(flag=='d' && *argv==0) in b_bg()
423 argv = (char**)0; in b_bg()
424 if(job_walk(sfstdout,job_switch,flag,argv)) in b_bg()
429 int b_jobs(register int n,char *argv[],void *extra) in b_jobs() argument
433 while((n = optget(argv,sh_optjobs))) switch(n) in b_jobs()
451 argv += opt_info.index; in b_jobs()
454 if(*argv==0) in b_jobs()
455 argv = (char**)0; in b_jobs()
456 if(job_walk(sfstdout,job_list,flag,argv)) in b_jobs()
468 int b_universe(int argc, char *argv[],void *extra) in b_universe() argument
473 while((n = optget(argv,sh_optuniverse))) switch(n) in b_universe()
482 argv += opt_info.index; in b_universe()
486 if(arg = argv[0]) in b_universe()
505 int b_vmap(int argc,char *argv[], void *extra){}
507 int b_vpath(register int argc,char *argv[], void *extra) in b_vpath() argument
513 if(argv[0][1]=='p') in b_vpath()
523 while(n = optget(argv, optstr)) switch(n) in b_vpath()
536 argv += opt_info.index; in b_vpath()
543 if((n = mount(*argv,(char*)0,flag,0)) >= 0) in b_vpath()
546 n = mount(*argv,vend,flag|FS3D_SIZE(n),0); in b_vpath()
579 if(mount(argv[n+1],argv[n],flag,0)<0) in b_vpath()