Lines Matching refs:opnd1
2760 test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2,
2808 return (*opnd1 != '\0');
2812 return (*opnd1 == '\0');
2816 return ((vp = isglobal(opnd1, false)) && (vp->flag & ISSET));
2820 if ((i = *opnd1) == '!' || i == '?')
2821 opnd1++;
2822 if ((k = option(opnd1)) == (size_t)-1)
2829 return (test_access(opnd1, R_OK) == 0);
2834 return (test_access(opnd1, W_OK) == 0);
2838 return (ksh_access(opnd1, X_OK) == 0);
2844 return (test_stat(opnd1, &b1) == 0);
2848 return (test_stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode));
2852 return (stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode));
2856 return (stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode));
2860 return (stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode));
2864 return (stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode));
2871 return (lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode));
2876 return (stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode));
2894 nv = shf_smprintf("%s+", opnd1);
2905 return (stat(opnd1, &b1) == 0 &&
2910 return (stat(opnd1, &b1) == 0 &&
2916 return (stat(opnd1, &b1) == 0 &&
2924 return (stat(opnd1, &b1) == 0 && (off_t)b1.st_size > (off_t)0);
2928 if (opnd1 && !bi_getn(opnd1, &i)) {
2932 i = isatty(opnd1 ? i : 0);
2937 return (stat(opnd1, &b1) == 0 && (uid_t)b1.st_uid == ksheuid);
2941 return (stat(opnd1, &b1) == 0 && (gid_t)b1.st_gid == getegid());
2950 if ((i = gmatchx(opnd1, opnd2, false)))
2951 record_match(opnd1);
2954 return (strcmp(opnd1, opnd2) == 0);
2959 if ((i = gmatchx(opnd1, opnd2, false)))
2960 record_match(opnd1);
2963 return (strcmp(opnd1, opnd2) != 0);
2967 return (strcmp(opnd1, opnd2) < 0);
2971 return (strcmp(opnd1, opnd2) > 0);
2979 return (stat(opnd1, &b1) == 0 &&
2990 (((s = stat(opnd1, &b1)) == 0 &&
2995 return (stat (opnd1, &b1) == 0 && stat (opnd2, &b2) == 0 &&
3016 if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR, false) ||
3093 const char *opnd1, *opnd2;
3117 opnd1 = (*te->getopnd)(te, op, do_eval);
3118 if (!opnd1) {
3123 return ((*te->eval)(te, op, opnd1, NULL, do_eval));
3126 opnd1 = (*te->getopnd)(te, TO_NONOP, do_eval);
3127 if (!opnd1) {
3139 return ((*te->eval)(te, op, opnd1, opnd2, do_eval));
3141 return ((*te->eval)(te, TO_STNZE, opnd1, NULL, do_eval));