Browse Source

little clean up.

master
Aurélien Aptel 14 years ago
parent
commit
476f93794a
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      st.c

+ 3
- 5
st.c View File

@ -208,12 +208,10 @@ die(const char *errstr, ...) {
void
execsh(void) {
char *shell = getenv("SHELL");
if(!shell)
shell = "/bin/sh";
char *args[3] = {shell, "-i", NULL};
char *args[3] = {getenv("SHELL"), "-i", NULL};
DEFAULT(args[0], "/bin/sh"); /* default shell if getenv() failed */
putenv("TERM=" TNAME);
execvp(shell, args);
execvp(args[0], args);
}
void


Loading…
Cancel
Save