aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2012-02-16 19:24:46 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2012-02-16 19:24:46 +0100
commit62c5a5a60a5186d249f461efe5fed07949ca50ee (patch)
tree41c20a5be1e73d6cb55bce4bfbbf38c0968bee9b /st.c
parent332c2a22fb9c473c7a70c80d3c05145f9fa7daf7 (diff)
downloadst-62c5a5a60a5186d249f461efe5fed07949ca50ee.tar.gz
st-62c5a5a60a5186d249f461efe5fed07949ca50ee.tar.bz2
use SHELL as default shell.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index baea2bc..741e680 100644
--- a/st.c
+++ b/st.c
@@ -709,7 +709,7 @@ execsh(void) {
char **args;
char *envshell = getenv("SHELL");
- DEFAULT(envshell, "sh");
+ DEFAULT(envshell, SHELL);
putenv("TERM="TNAME);
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
execvp(args[0], args);