Launch scroll program with the default shell
This commit is contained in:
		
				
					committed by
					
						 Hiltjo Posthuma
						Hiltjo Posthuma
					
				
			
			
				
	
			
			
			
						parent
						
							0b73612c0d
						
					
				
				
					commit
					c1145268f6
				
			
							
								
								
									
										9
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								st.c
									
									
									
									
									
								
							| @@ -682,9 +682,12 @@ execsh(char *cmd, char **args) | |||||||
| 	if (args) { | 	if (args) { | ||||||
| 		prog = args[0]; | 		prog = args[0]; | ||||||
| 		arg = NULL; | 		arg = NULL; | ||||||
| 	} else if (scroll || utmp) { | 	} else if (scroll) { | ||||||
| 		prog = scroll ? scroll : utmp; | 		prog = scroll; | ||||||
| 		arg = scroll ? utmp : NULL; | 		arg = utmp ? utmp : sh; | ||||||
|  | 	} else if (utmp) { | ||||||
|  | 		prog = utmp; | ||||||
|  | 		arg = NULL; | ||||||
| 	} else { | 	} else { | ||||||
| 		prog = sh; | 		prog = sh; | ||||||
| 		arg = NULL; | 		arg = NULL; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user