mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Remove CMD_SENDENVIRON.
This commit is contained in:
		
							
								
								
									
										7
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								client.c
									
									
									
									
									
								
							@@ -179,7 +179,7 @@ client_main(int argc, char **argv, int flags)
 | 
			
		||||
		cmdflags = CMD_STARTSERVER;
 | 
			
		||||
	} else if (argc == 0) {
 | 
			
		||||
		msg = MSG_COMMAND;
 | 
			
		||||
		cmdflags = CMD_STARTSERVER|CMD_SENDENVIRON|CMD_CANTNEST;
 | 
			
		||||
		cmdflags = CMD_STARTSERVER|CMD_CANTNEST;
 | 
			
		||||
	} else {
 | 
			
		||||
		msg = MSG_COMMAND;
 | 
			
		||||
 | 
			
		||||
@@ -197,8 +197,6 @@ client_main(int argc, char **argv, int flags)
 | 
			
		||||
		TAILQ_FOREACH(cmd, &cmdlist->list, qentry) {
 | 
			
		||||
			if (cmd->entry->flags & CMD_STARTSERVER)
 | 
			
		||||
				cmdflags |= CMD_STARTSERVER;
 | 
			
		||||
			if (cmd->entry->flags & CMD_SENDENVIRON)
 | 
			
		||||
				cmdflags |= CMD_SENDENVIRON;
 | 
			
		||||
			if (cmd->entry->flags & CMD_CANTNEST)
 | 
			
		||||
				cmdflags |= CMD_CANTNEST;
 | 
			
		||||
		}
 | 
			
		||||
@@ -262,8 +260,7 @@ client_main(int argc, char **argv, int flags)
 | 
			
		||||
	set_signals(client_signal);
 | 
			
		||||
 | 
			
		||||
	/* Send initial environment. */
 | 
			
		||||
	if (cmdflags & CMD_SENDENVIRON)
 | 
			
		||||
		client_send_environ();
 | 
			
		||||
	client_send_environ();
 | 
			
		||||
	client_send_identify(flags);
 | 
			
		||||
 | 
			
		||||
	/* Send first command. */
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ const struct cmd_entry cmd_attach_session_entry = {
 | 
			
		||||
	"attach-session", "attach",
 | 
			
		||||
	"drt:", 0, 0,
 | 
			
		||||
	"[-dr] " CMD_TARGET_SESSION_USAGE,
 | 
			
		||||
	CMD_CANTNEST|CMD_STARTSERVER|CMD_SENDENVIRON,
 | 
			
		||||
	CMD_CANTNEST|CMD_STARTSERVER,
 | 
			
		||||
	NULL,
 | 
			
		||||
	cmd_attach_session_exec
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ const struct cmd_entry cmd_new_session_entry = {
 | 
			
		||||
	"[-AdDP] [-c start-directory] [-F format] [-n window-name] "
 | 
			
		||||
	"[-s session-name] " CMD_TARGET_SESSION_USAGE " [-x width] [-y height] "
 | 
			
		||||
	"[command]",
 | 
			
		||||
	CMD_STARTSERVER|CMD_CANTNEST|CMD_SENDENVIRON,
 | 
			
		||||
	CMD_STARTSERVER|CMD_CANTNEST,
 | 
			
		||||
	NULL,
 | 
			
		||||
	cmd_new_session_exec
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user