If there is really someone without SHELL set, help him/her.
This commit is contained in:
		
							
								
								
									
										3
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								st.c
									
									
									
									
									
								
							| @@ -865,6 +865,9 @@ execsh(void) { | |||||||
| 	char **args; | 	char **args; | ||||||
| 	char *envshell = getenv("SHELL"); | 	char *envshell = getenv("SHELL"); | ||||||
|  |  | ||||||
|  | 	if (envshell == NULL) | ||||||
|  | 		envshell ="/bin/sh"; | ||||||
|  |  | ||||||
| 	unsetenv("COLUMNS"); | 	unsetenv("COLUMNS"); | ||||||
| 	unsetenv("LINES"); | 	unsetenv("LINES"); | ||||||
| 	unsetenv("TERMCAP"); | 	unsetenv("TERMCAP"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user