Home | History | Annotate | Download | only in pending

Lines Matching full:optargs

49     if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'");
50 if (!strcmp("!", toys.optargs[0])) {
52 toys.optargs++;
56 else if (toys.optargs[0][0] == '-') {
57 id = stridx("bcdefghLpSsurwxznt", toys.optargs[0][1]);
58 if (id == -1 || toys.optargs[0][2]) error_exit(err_fmt, toys.optargs[0]);
64 if (lstat(toys.optargs[1], &st) == -1) return;
66 if (!nolink && (stat(toys.optargs[1], &st) == -1)) return;
81 toys.exitval = access(toys.optargs[1], 1 << (id - 12)) == -1;
83 toys.exitval = toys.optargs[1] && !*toys.optargs[1] ^ (id - 15);
86 toys.exitval = tcgetattr(atoi(toys.optargs[1]), &termios) == -1;
89 else if (toys.optc == 1) toys.exitval = *toys.optargs[0] == 0;
91 if (*toys.optargs[1] == '-') {
92 long a = atol(toys.optargs[0]), b = atol(toys.optargs[2]);
94 s = toys.optargs[1] + 1;
101 else error_exit(err_fmt, toys.optargs[1]);
104 int result = strcmp(toys.optargs[0], toys.optargs[2]);
106 s = toys.optargs[1];
109 else error_exit(err_fmt, toys.optargs[1]);