OpenBSD CVS

CVS log for src/usr.bin/tmux/environ.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Mon Aug 15 08:37:03 2022 UTC (21 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.26: +10 -7 lines
Diff to previous 1.26 (colored)

Don't stop at first match when updating environment.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 7 08:23:55 2020 UTC (3 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.25: +7 -2 lines
Diff to previous 1.25 (colored)

Allow fnmatch(3) wildcards in update-environment, GitHub issue 2397.

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 16 15:40:44 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other
terminals.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 31 17:14:40 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.23: +20 -11 lines
Diff to previous 1.23 (colored)

Add a way to mark environment variables as "hidden" so they can be used
by tmux but are not passed into the environment of new panes.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 25 19:36:59 2019 UTC (5 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.22: +1 -5 lines
Diff to previous 1.22 (colored)

options_array_item_value cannot return NULL.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 23 20:36:55 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

Indicate an array option with a flag rather than a special type so that
in future will not have to be strings.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 18 11:58:40 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.20: +13 -9 lines
Diff to previous 1.20 (colored)

Make array options a sparse tree instead of an array of char * and
remove the size limit.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 11 07:34:54 2017 UTC (7 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.19: +10 -2 lines
Diff to previous 1.19 (colored)

Make environ_log prefix take a format.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 25 15:35:10 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

Do not update TERM into config file parsing has finished.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 9 17:02:38 2017 UTC (7 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.17: +27 -1 lines
Diff to previous 1.17 (colored)

Move server_fill_environ into environ.c and move some other common code
into it.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 24 20:15:32 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.16: +16 -14 lines
Diff to previous 1.16 (colored)

Make update-environment an array as well.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 10 21:29:23 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.15: +4 -5 lines
Diff to previous 1.15 (colored)

Loads more static, except for cmd-*.c and window-*.c.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 15 09:52:34 2016 UTC (7 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.14: +8 -4 lines
Diff to previous 1.14 (colored)

Tweak output of environment logging.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 15 09:28:32 2016 UTC (7 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.13: +11 -1 lines
Diff to previous 1.13 (colored)

Log environment to new panes.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 26 12:15:42 2016 UTC (7 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.12: +4 -12 lines
Diff to previous 1.12 (colored)

Just nuke environ instead of trying to unsetenv everything because that
doesn't necessarily work if there is an entry with an empty name.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 15 11:33:41 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Clear the environment properly by looping until it is empty rather than
looping over it (which may skip entries), from Brad King.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 24 23:46:15 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.9: +33 -15 lines
Diff to previous 1.9 (colored)

Make environ_set va_args and use it to tidy up some calls. Also add a
missing word in manpage (from jmc).

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 28 09:51:55 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.8: +26 -6 lines
Diff to previous 1.8 (colored)

Like options, move the environ struct into environ.c.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 7 07:35:31 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.7: +10 -17 lines
Diff to previous 1.7 (colored)

Simplify environ_push so it doesn't need the ARRAY_* functions.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 25 16:53:46 2015 UTC (9 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)

Don't leak the individual strings when copying environment.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 17 14:45:49 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Some more long lines.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 10 11:53:01 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.4: +10 -13 lines
Diff to previous 1.4 (colored)

xfree is not particularly helpful, remove it. From Thomas Adam.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 4 19:02:09 2010 UTC (14 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.3: +38 -2 lines
Diff to previous 1.3 (colored)

Run job commands explicitly in the global enviroment (which can be
modified with setenv -g) rather than with the environment tmux started
with.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 9 15:17:50 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored)

Nuke a dead variable found with clang and an unused declaration with lint.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Aug 8 21:54:26 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Use a temporary variable for strdup of const char *.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 8 21:52:43 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN

Infrastructure and commands to manage the environment for processes started
within tmux.

There is a global environment, copied from the external environment when the
server is started and each sesssion has an (initially empty) session
environment which overrides it.

New commands set-environment and show-environment manipulate or display the
environments.

A new session option, update-environment, is a space-separated list of
variables which are updated from the external environment into the session
environment every time a new session is created - the default is DISPLAY.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.