use SHELL as default shell.
This commit is contained in:
		
							
								
								
									
										2
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
									
									
									
									
								
							| @@ -709,7 +709,7 @@ execsh(void) { | |||||||
| 	char **args; | 	char **args; | ||||||
| 	char *envshell = getenv("SHELL"); | 	char *envshell = getenv("SHELL"); | ||||||
|  |  | ||||||
| 	DEFAULT(envshell, "sh"); | 	DEFAULT(envshell, SHELL); | ||||||
| 	putenv("TERM="TNAME); | 	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); | 	execvp(args[0], args); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user