Lines Matching refs:name
21 const char *name; in cmd_env_get() local
36 name = argv[1]; in cmd_env_get()
37 value = getenv(name); in cmd_env_get()
49 static bool is_shell_env_name(const char *name) in is_shell_env_name() argument
53 if (name == NULL || name[0] == '\0') { in is_shell_env_name()
57 for (size_t i = 0, N = strlen(name); i < N; ++i) { in is_shell_env_name()
58 c = name[i]; in is_shell_env_name()
82 const char *name; in cmd_env_set() local
86 name = argv[1]; in cmd_env_set()
94 name = argv[1]; in cmd_env_set()
102 if (!is_shell_env_name(name)) { in cmd_env_set()
107 ret = setenv(name, value, 1); in cmd_env_set()