Lines Matching refs:opnd1
2778 test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2, in test_eval() argument
2826 return (*opnd1 != '\0'); in test_eval()
2830 return (*opnd1 == '\0'); in test_eval()
2834 return ((vp = isglobal(opnd1, false)) && (vp->flag & ISSET)); in test_eval()
2838 if ((i = *opnd1) == '!' || i == '?') in test_eval()
2839 opnd1++; in test_eval()
2840 if ((k = option(opnd1)) == (size_t)-1) in test_eval()
2847 return (test_access(opnd1, R_OK) == 0); in test_eval()
2852 return (test_access(opnd1, W_OK) == 0); in test_eval()
2856 return (ksh_access(opnd1, X_OK) == 0); in test_eval()
2862 return (test_stat(opnd1, &b1) == 0); in test_eval()
2866 return (test_stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode)); in test_eval()
2870 return (test_stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode)); in test_eval()
2874 return (test_stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode)); in test_eval()
2878 return (test_stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode)); in test_eval()
2882 return (test_stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode)); in test_eval()
2889 return (test_lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode)); in test_eval()
2894 return (test_stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode)); in test_eval()
2912 nv = shf_smprintf("%s+", opnd1); in test_eval()
2923 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2928 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2934 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2942 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2947 if (opnd1 && !bi_getn(opnd1, &i)) { in test_eval()
2951 i = isatty(opnd1 ? i : 0); in test_eval()
2956 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2961 return (test_stat(opnd1, &b1) == 0 && in test_eval()
2971 if ((i = gmatchx(opnd1, opnd2, false))) in test_eval()
2972 record_match(opnd1); in test_eval()
2975 return (strcmp(opnd1, opnd2) == 0); in test_eval()
2980 if ((i = gmatchx(opnd1, opnd2, false))) in test_eval()
2981 record_match(opnd1); in test_eval()
2984 return (strcmp(opnd1, opnd2) != 0); in test_eval()
2988 return (strcmp(opnd1, opnd2) < 0); in test_eval()
2992 return (strcmp(opnd1, opnd2) > 0); in test_eval()
3000 return (test_stat(opnd1, &b1) == 0 && in test_eval()
3011 (((s = test_stat(opnd1, &b1)) == 0 && in test_eval()
3016 return (test_stat(opnd1, &b1) == 0 && in test_eval()
3038 if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR, false) || in test_eval()
3115 const char *opnd1, *opnd2; in test_primary() local
3139 opnd1 = (*te->getopnd)(te, op, do_eval); in test_primary()
3140 if (!opnd1) { in test_primary()
3145 return ((*te->eval)(te, op, opnd1, NULL, do_eval)); in test_primary()
3148 opnd1 = (*te->getopnd)(te, TO_NONOP, do_eval); in test_primary()
3149 if (!opnd1) { in test_primary()
3161 return ((*te->eval)(te, op, opnd1, opnd2, do_eval)); in test_primary()
3163 return ((*te->eval)(te, TO_STNZE, opnd1, NULL, do_eval)); in test_primary()