Lines Matching refs:getvar
525 static char *getvar(char *s) in getvar() function
942 *environ = getvar("PATH") ? : "PATH="; in run_subshell()
1041 } else if ((*used = varend(str)-str)) return getvar(str); in getvar_special()
1402 if (!(ss = getvar("HOME")) || !*ss) pw = bufgetpwuid(getuid()); in expand_arg_nobrace()
2140 if (!(ss = getvar(s+1))) break; in expand_redir()
2156 char *tmp = getvar("TMPDIR"); in expand_redir()
2271 char *pp = getvar("PATH" ? : _PATH_DEFPATH), *cc = TT.isexec ? : *argv, *ss, in sh_exec()
3064 if ((s = getvar("PWD"))) { in do_prompt()
3065 if ((ss = getvar("HOME")) && strstart(&s, ss)) { in do_prompt()
3096 do_prompt(getvar(ps)); in get_next_line()
3173 char *ss, *ps4 = getvar("PS4"); in run_lines()
3503 shv->str = xmprintf("%.*s=%s", (int)(varend(str)-str), str, getvar(str)); in export()
3521 char *pp = getvar("PATH") ? : _PATH_DEFPATH; in fpathopen()
3693 if (!(ss = getvar("SHLVL"))) export("SHLVL=1"); in subshell_setup()
3751 if (!getvar("PS1")) setvarval("PS1", getpid() ? "\\$ " : "# "); in sh_main()
3776 char *home = getvar("HOME") ? : "/", *pwd = getvar("PWD"), *from, *to = 0, in cd_main()