Lines Matching refs:tvar
748 char *tvar;
793 strndupx(tvar, var, val - var, ATEMP);
799 strndupx(tvar, var, val - var, ATEMP);
807 strdupx(tvar, var, ATEMP);
810 len = strlen(tvar);
811 if (len > 3 && tvar[len - 3] == '[' && tvar[len - 2] == '*' &&
812 tvar[len - 1] == ']')
813 tvar[len - 3] = '\0';
824 varsearch(e->loc, &vp, tvar, hash(tvar));
862 if (!strcmp(qval, tvar))
873 if (Flag(FRESTRICTED) && (strcmp(tvar, TPATH) == 0 ||
874 strcmp(tvar, "ENV") == 0 || strcmp(tvar, TSHELL) == 0))
875 errorf(Tf_sD_s, tvar, "restricted");
878 vp = (set & LOCAL) ? local(tvar, tobool(set & LOCAL_COPY)) :
879 global(tvar);
902 vpbase = (vp->flag & ARRAY) ? global(arrayname(tvar)) : vp;
912 errorfx(2, Tf_ro, tvar);
913 afree(tvar, ATEMP);