Explorar el Código

use SHELL as default shell.

Aurélien Aptel hace 13 años
padre
commit
6c0a1eff2f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      st.c

+ 1 - 1
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);