Home | History | Annotate | Download | only in src

Lines Matching refs:tvar

704 	char *tvar;
735 tvar, var, val - var, ATEMP);
750 strdupx(tvar, var, ATEMP);
753 len = strlen(tvar);
754 if (len > 3 && tvar[len - 3] == '[' && tvar[len - 2] == '*' &&
755 tvar[len - 1] == ']')
756 tvar[len - 3] = '\0';
767 varsearch(e->loc, &vp, tvar, hash(tvar));
772 if (qval != NULL && !strcmp(qval, tvar)) {
773 afree(tvar, ATEMP);
779 if (Flag(FRESTRICTED) && (strcmp(tvar, "PATH") == 0 ||
780 strcmp(tvar, "ENV") == 0 || strcmp(tvar, "SHELL") == 0))
781 errorf("%s: %s", tvar, "restricted");
783 vp = (set&LOCAL) ? local(tvar, tobool(set & LOCAL_COPY)) :
784 global(tvar);
817 errorfx(2, "read-only: %s", tvar);
818 afree(tvar, ATEMP);