Lines Matching defs:opnd1

2799 test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2,
2847 return (*opnd1 != '\0');
2851 return (*opnd1 == '\0');
2855 return ((vp = isglobal(opnd1, false)) && (vp->flag & ISSET));
2859 if ((i = *opnd1) == '!' || i == '?')
2860 opnd1++;
2861 if ((k = option(opnd1)) == (size_t)-1)
2868 return (test_access(opnd1, R_OK) == 0);
2873 return (test_access(opnd1, W_OK) == 0);
2877 return (ksh_access(opnd1, X_OK) == 0);
2883 return (test_stat(opnd1, &b1) == 0);
2887 return (test_stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode));
2891 return (test_stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode));
2895 return (test_stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode));
2899 return (test_stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode));
2903 return (test_stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode));
2910 return (test_lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode));
2915 return (test_stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode));
2933 nv = shf_smprintf("%s+", opnd1);
2944 return (test_stat(opnd1, &b1) == 0 &&
2949 return (test_stat(opnd1, &b1) == 0 &&
2955 return (test_stat(opnd1, &b1) == 0 &&
2963 return (test_stat(opnd1, &b1) == 0 &&
2968 if (opnd1 && !bi_getn(opnd1, &i)) {
2972 i = isatty(opnd1 ? i : 0);
2977 return (test_stat(opnd1, &b1) == 0 &&
2982 return (test_stat(opnd1, &b1) == 0 &&
2992 if ((i = gmatchx(opnd1, opnd2, false)))
2993 record_match(opnd1);
2996 return (strcmp(opnd1, opnd2) == 0);
3001 if ((i = gmatchx(opnd1, opnd2, false)))
3002 record_match(opnd1);
3005 return (strcmp(opnd1, opnd2) != 0);
3009 return (strcmp(opnd1, opnd2) < 0);
3013 return (strcmp(opnd1, opnd2) > 0);
3021 return (test_stat(opnd1, &b1) == 0 &&
3032 (((s = test_stat(opnd1, &b1)) == 0 &&
3037 return (test_stat(opnd1, &b1) == 0 &&
3059 if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR, false) ||
3136 const char *opnd1, *opnd2;
3160 opnd1 = (*te->getopnd)(te, op, do_eval);
3161 if (!opnd1) {
3166 return ((*te->eval)(te, op, opnd1, NULL, do_eval));
3169 opnd1 = (*te->getopnd)(te, TO_NONOP, do_eval);
3170 if (!opnd1) {
3182 return ((*te->eval)(te, op, opnd1, opnd2, do_eval));
3184 return ((*te->eval)(te, TO_STNZE, opnd1, NULL, do_eval));