Lines Matching refs:initvar
3476 static struct sh_vars *initvar(char *name, char *val) in initvar() function
3483 return initvar(name, (!val || !*val) ? def : val); in initvardef()
3620 initvar(magic[ii], "")->flags = VAR_MAGIC|(VAR_INT*('G'!=*magic[ii])); in subshell_setup()
3625 initvar("PATH", _PATH_DEFPATH); in subshell_setup()
3633 initvar("HOSTNAME", toybuf); in subshell_setup()
3635 initvar("HOSTTYPE", uu.machine); in subshell_setup()
3637 initvar("MACHTYPE", toybuf); in subshell_setup()
3638 initvar("OSTYPE", uu.sysname); in subshell_setup()
3641 initvar("OPTERR", "1"); // TODO: test if already exported? in subshell_setup()
3643 initvar("BASH", s); in subshell_setup()
3644 initvar("PS2", "> "); in subshell_setup()
3645 initvar("PS3", "#? "); in subshell_setup()
3646 initvar("PS4", "+ "); in subshell_setup()