st

fork of suckless's simple terminal
Index Commits Files Refs README LICENSE
commit 2e38ab7afdc56e3853751918f1b7705362bea01c
parent eb6713acf1928ec94364627ed583252370051705
Author: Christoph Lohmann <20h@r-36.net>
Date:   Tue,  9 Oct 2012 19:40:37 +0200

Well, I was confused. Damn state exams. Instead of discussing this shit I

should really learn opthalmology instead. :O
Diffstat:
Mst.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/st.c b/st.c
@@ -865,9 +865,6 @@ execsh(void) {
     char **args;
     char *envshell = getenv("SHELL");
 
-    if (envshell == NULL)
-        envshell ="/bin/sh";
-
     unsetenv("COLUMNS");
     unsetenv("LINES");
     unsetenv("TERMCAP");
@@ -881,7 +878,7 @@ execsh(void) {
 
     DEFAULT(envshell, SHELL);
     putenv("TERM="TNAME);
-    args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
+    args = opt_cmd ? opt_cmd : (char *[]){envshell, "-i", NULL};
     execvp(args[0], args);
     exit(EXIT_FAILURE);
 }