diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-16 19:24:46 +0100 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-16 19:24:46 +0100 |
commit | 6c0a1eff2fb2419b9bbfb545d0cf21a2e524efb2 (patch) | |
tree | 41c20a5be1e73d6cb55bce4bfbbf38c0968bee9b | |
parent | 7823aeb1f9eb5b7a77b42506f5f60a5743f7f71f (diff) | |
download | st-6c0a1eff2fb2419b9bbfb545d0cf21a2e524efb2.tar.gz st-6c0a1eff2fb2419b9bbfb545d0cf21a2e524efb2.zip |
use SHELL as default shell.
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -709,7 +709,7 @@ execsh(void) { | |||
709 | char **args; | 709 | char **args; |
710 | char *envshell = getenv("SHELL"); | 710 | char *envshell = getenv("SHELL"); |
711 | 711 | ||
712 | DEFAULT(envshell, "sh"); | 712 | DEFAULT(envshell, SHELL); |
713 | putenv("TERM="TNAME); | 713 | putenv("TERM="TNAME); |
714 | args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; | 714 | args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; |
715 | execvp(args[0], args); | 715 | execvp(args[0], args); |