If there is really someone without SHELL set, help him/her.
This commit is contained in:
		
							parent
							
								
									9e813947cf
								
							
						
					
					
						commit
						eb6713acf1
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								st.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								st.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -865,6 +865,9 @@ execsh(void) {
 | 
			
		|||
	char **args;
 | 
			
		||||
	char *envshell = getenv("SHELL");
 | 
			
		||||
 | 
			
		||||
	if (envshell == NULL)
 | 
			
		||||
		envshell ="/bin/sh";
 | 
			
		||||
 | 
			
		||||
	unsetenv("COLUMNS");
 | 
			
		||||
	unsetenv("LINES");
 | 
			
		||||
	unsetenv("TERMCAP");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue