mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Only use default-shell for popups, return to /bin/sh for run-shell,
if-shell and #() - these have been documented as using /bin/sh for a long time and scripts rely on it. Pointed out by Gregory Pakosz.
This commit is contained in:
		
							
								
								
									
										2
									
								
								popup.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								popup.c
									
									
									
									
									
								
							@@ -718,7 +718,7 @@ popup_display(int flags, enum box_lines lines, struct cmdq_item *item, u_int px,
 | 
			
		||||
 | 
			
		||||
	pd->job = job_run(shellcmd, argc, argv, env, s, cwd,
 | 
			
		||||
	    popup_job_update_cb, popup_job_complete_cb, NULL, pd,
 | 
			
		||||
	    JOB_NOWAIT|JOB_PTY|JOB_KEEPWRITE, jx, jy);
 | 
			
		||||
	    JOB_NOWAIT|JOB_PTY|JOB_KEEPWRITE|JOB_DEFAULTSHELL, jx, jy);
 | 
			
		||||
	pd->ictx = input_init(NULL, job_get_event(pd->job), &pd->palette);
 | 
			
		||||
 | 
			
		||||
	server_client_set_overlay(c, 0, popup_check_cb, popup_mode_cb,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user