Home
last modified time | relevance | path

Searched refs:i (Results 51 – 75 of 16010) sorted by path

12345678910>>...641

/freebsd/bin/sh/
H A Ddot.shrc26 # alias g='egrep -i'
30 # alias mv='mv -i'
31 # alias rm='rm -i'
H A Deval.c346 int i; in evalfor() local
357 for (i = 0; i < arglist.count; i++) { in evalfor()
753 int i; in xtracecommand() local
757 for (i = 0; i < varlist->count; i++) { in xtracecommand()
770 for (i = 0; i < argc; i++) { in xtracecommand()
834 int i; in evalcommand() local
884 for (i = 0; i < varlist.count; i++) in evalcommand()
1042 for (i = 0; i < varlist.count; i++) in evalcommand()
1140 for (i = 0; i < varlist.count; i++) in evalcommand()
1324 int i; in execcmd() local
[all …]
H A Dexec.c353 int i; in find_command() local
382 cmdp->param.index = i; in find_command()
596 size_t i = 0; in itercmd() local
605 for (; i < CMDTABLESIZE; i++) in itercmd()
733 int i; in typecmd_impl() local
739 for (i = 1; i < argc; i++) { in typecmd_impl()
742 if (**pp == *argv[i] && equal(*pp, argv[i])) in typecmd_impl()
747 out1fmt("%s\n", argv[i]); in typecmd_impl()
808 out1fmt("%s\n", argv[i]); in typecmd_impl()
815 out1fmt("%s\n", argv[i]); in typecmd_impl()
[all …]
H A Dexpand.c455 int i; in expbackq() local
486 if (i <= 0) in expbackq()
930 int i; in varvalue() local
956 for (i = 0 ; i < NSHORTOPTS ; i++) { in varvalue()
1483 int i; in wordexpcmd() local
1486 for (i = 1, len = 0; i < argc; i++) in wordexpcmd()
1489 for (i = 1; i < argc; i++) in wordexpcmd()
1490 outbin(argv[i], strlen(argv[i]) + 1, out1); in wordexpcmd()
1507 int i; in freebsd_wordexpcmd() local
1539 for (i = 0, len = 0; i < arglist.count; i++) in freebsd_wordexpcmd()
[all …]
H A Dhistedit.c255 int i, retval; in histcmd() local
365 i = last; in histcmd()
367 first = i; in histcmd()
499 int i, retval; in str_to_event() local
510 i = atoi(s); in str_to_event()
512 while (retval != -1 && i--) { in str_to_event()
596 matches[i] = match_copy; in add_match()
597 if (i >= *size - 1) { in add_match()
617 size_t i = 0, size = 16, uniq; in sh_matches() local
691 if (i == 0) { in sh_matches()
[all …]
H A Djobs.c173 int i; in setjobctl() local
182 while (i <= 2 && !isatty(i)) in setjobctl()
290 int i; in restartjob() local
344 for (i = jp->nprocs - 1; i >= 0; i--) { in getjobstatus()
619 for (i = 0 ; i < jp->nprocs ; ) { in jobidcmd()
730 for (i = 0; i < jp->nprocs; i++) in killjob()
764 for (i = 0; i < njobs; i++) in makejob()
766 jp[i].next = &jp[jp[i].next - in makejob()
772 for (i = 0; i < njobs; i++) in makejob()
773 if (jp[i].ps == &jobtab[i].ps0) in makejob()
[all …]
H A Dmail.c65 int i; in chkmail() local
78 for (i = 0 ; i < nmboxes ; i++) { in chkmail()
94 if (statb.st_mtime > mailtime[i] && ! silent) { in chkmail()
98 mailtime[i] = statb.st_mtime; in chkmail()
102 if (statb.st_size > mailtime[i] && ! silent) { in chkmail()
106 mailtime[i] = statb.st_size; in chkmail()
109 nmboxes = i; in chkmail()
H A Dmiscbltin.c161 int i; in readcmd() local
177 switch(i) { in readcmd()
352 int i; in umaskcmd() local
368 i = 0; in umaskcmd()
370 u[i++] = 'r'; in umaskcmd()
372 u[i++] = 'w'; in umaskcmd()
375 u[i] = '\0'; in umaskcmd()
377 i = 0; in umaskcmd()
384 g[i] = '\0'; in umaskcmd()
386 i = 0; in umaskcmd()
[all …]
H A Dmknodes.c208 int i; in output() local
220 for (i = 0 ; i < ntypes ; i++) in output()
221 fprintf(hfile, "#define %s %d\n", nodename[i], i); in output()
225 for (i = sp->nfields, fp = sp->field ; --i >= 0 ; fp++) { in output()
274 int i; in outsizes() local
277 for (i = 0 ; i < ntypes ; i++) { in outsizes()
289 int i; in outfunc() local
304 for (i = 0 ; i < ntypes ; i++) { in outfunc()
305 if (nodestr[i] == sp) in outfunc()
308 for (i = sp->nfields ; --i >= 1 ; ) { in outfunc()
[all …]
H A Dmksyntax.c105 int i; in main() local
126 for (i = 0 ; synclass[i].name ; i++) { in main()
127 sprintf(buf, "#define %s %d", synclass[i].name, i); in main()
131 fprintf(hfile, "/* %s */\n", synclass[i].comment); in main()
135 for (i = 0 ; is_entry[i].name ; i++) { in main()
136 sprintf(buf, "#define %s %#o", is_entry[i].name, 1 << i); in main()
140 fprintf(hfile, "/* %s */\n", is_entry[i].comment); in main()
H A Doptions.c82 int i; in procargs() local
88 for (i = 0; i < NOPTS; i++) in procargs()
101 for (i = 0; i < NOPTS; i++) in procargs()
244 int i; in minus_o() local
252 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1) in minus_o()
257 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1) in minus_o()
266 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1) in minus_o()
298 int i; in setoption() local
300 for (i = 0; i < NSHORTOPTS; i++) in setoption()
374 for (i = 0; i < n; i++) in shiftcmd()
[all …]
H A Doutput.c167 int i; in outqstr() local
173 for (i = 0; p[i] != '\0'; i++) { in outqstr()
174 if ((p[i] > '\0' && p[i] < ' ' && p[i] != '\n') || in outqstr()
175 (p[i] & 0x80) != 0 || p[i] == '\'') { in outqstr()
349 int i; in xwrite() local
355 i = write(fd, buf, n); in xwrite()
356 if (i > 0) { in xwrite()
357 if ((n -= i) <= 0) in xwrite()
359 buf += i; in xwrite()
361 } else if (i == 0) { in xwrite()
H A Dparser.c1310 for (i = 0; i < n; i++) { in readcstyleesc()
2052 for (i = 0; (i < PROMPTLEN - 1) && (*fmt != '\0'); i++, fmt++) { in getprompt()
2136 i += strftime(&ps[i], PROMPTLEN - i - 1, tfmt, now); in getprompt()
2150 gethostname(&ps[i], PROMPTLEN - i - 1); in getprompt()
2154 while ((ps[i] != '\0') && (ps[i] != trim)) in getprompt()
2155 i++; in getprompt()
2156 --i; in getprompt()
2164 getusername(&ps[i], PROMPTLEN - i); in getprompt()
2167 i++; in getprompt()
2200 strlcpy(&ps[i], pwd, PROMPTLEN - i); in getprompt()
[all …]
H A Dredir.c107 int i; in redirect() local
112 for (i = 10 ; --i >= 0 ; ) in redirect()
113 memory[i] = 0; in redirect()
119 for (i = 0 ; i < 10 ; i++) in redirect()
141 i = CLOSED; in redirect()
307 int i; in popredir() local
315 for (i = 0 ; i < 10 ; i++) { in popredir()
318 dup2(rp->renamed[i], i); in popredir()
321 close(i); in popredir()
347 int i; in clearredir() local
[all …]
H A Dshow.c254 int i; in indent() local
256 for (i = 0 ; i < amount ; i++) { in indent()
257 if (pfx && i == amount - 1) in indent()
/freebsd/bin/sh/tests/builtins/
H A Dbreak5.47 (for i in a b c; do
H A Dfc1.010 ENV= HISTFILE=/dev/null ${SH} +m -i <input >output 2>error &
H A Dfc2.010 HISTFILE=/dev/null ${SH} +m -i <input >output 2>error &
H A Dfc3.09 ' | ENV= HISTFILE=/dev/null ${SH} +m -i
H A Dfor1.03 for i in `false`; do exit 3; done
H A Dfor2.05 for i in x; do
H A Dfor3.04 for i in x`f`; do
H A Dread5.012 for i in 0 1 2 3; do
15 case $i$j$k in
18 e="$e\\$i$j$k"
H A Dtrap2.035 i=1
36 while [ $i -le 127 ]; do
37 c=$(printf \\"$(printf %o $i)")
38 if [ $i -lt 48 ] || [ $i -gt 57 ]; then
43 i=$((i+1))
H A Dwait2.08 for i in 1 2 3 4 5 6 7 8 9 10; do
9 exit $i &

12345678910>>...641