266 |
|
|
267 |
/* Remember the original value of the SHELL variable, from the environment. */ |
/* Remember the original value of the SHELL variable, from the environment. */ |
268 |
|
|
269 |
const char *env_shell = 0; |
struct variable shell_var; |
270 |
|
|
271 |
|
|
272 |
/* The usage output. We write it this way to make life easier for the |
/* The usage output. We write it this way to make life easier for the |
1084 |
if (strncmp (envp[i], "SHELL=", 6) == 0) |
if (strncmp (envp[i], "SHELL=", 6) == 0) |
1085 |
{ |
{ |
1086 |
v->export = v_noexport; |
v->export = v_noexport; |
1087 |
env_shell = xstrdup (ep + 1); |
shell_var.name = "SHELL"; |
1088 |
|
shell_var.value = xstrdup (ep + 1); |
1089 |
} |
} |
1090 |
} |
} |
1091 |
} |
} |