mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Log environment to new panes.
This commit is contained in:
parent
68b1fd0cc6
commit
1718420c48
10
environ.c
10
environ.c
@ -203,3 +203,13 @@ environ_push(struct environ *env)
|
||||
setenv(envent->name, envent->value, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Log the environment. */
|
||||
void
|
||||
environ_log(struct environ *env)
|
||||
{
|
||||
struct environ_entry *envent;
|
||||
|
||||
RB_FOREACH(envent, environ, env)
|
||||
log_debug("%s=%s", envent->name, envent->value);
|
||||
}
|
||||
|
1
tmux.h
1
tmux.h
@ -1693,6 +1693,7 @@ void environ_put(struct environ *, const char *);
|
||||
void environ_unset(struct environ *, const char *);
|
||||
void environ_update(const char *, struct environ *, struct environ *);
|
||||
void environ_push(struct environ *);
|
||||
void environ_log(struct environ *);
|
||||
|
||||
/* tty.c */
|
||||
void tty_create_log(void);
|
||||
|
1
window.c
1
window.c
@ -842,6 +842,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
|
||||
log_debug("spawn: %s -- %s", wp->shell, cmd);
|
||||
for (i = 0; i < wp->argc; i++)
|
||||
log_debug("spawn: argv[%d] = %s", i, wp->argv[i]);
|
||||
environ_log(env);
|
||||
|
||||
memset(&ws, 0, sizeof ws);
|
||||
ws.ws_col = screen_size_x(&wp->base);
|
||||
|
Loading…
Reference in New Issue
Block a user