diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-06-03 13:17:13 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-06-03 13:41:34 +0300 |
commit | f50a208f9df348cede2ba50b4f435351d8d3f19e (patch) | |
tree | c596fdf237b17713ab56c0269cdb1d339e306941 /tests/envop.at | |
parent | 8004bbaa1b31b14dd4c4d3886b5f57b103bf7405 (diff) | |
download | pies-f50a208f9df348cede2ba50b4f435351d8d3f19e.tar.gz pies-f50a208f9df348cede2ba50b4f435351d8d3f19e.tar.bz2 |
Finish the env re-implementation
* NEWS: Document the "env" statement and the PIES_MASTER_PID
environment variable.
Version 1.3.91
* configure.ac: Version 1.3.91
* doc/pies.texi: Document the new "env" statement syntax. Provide
instructions on how to convert legacy "env" statement to the new
form.
* lib/envop.c (environ_unset): Take reference value as argument.
If supplied, unset the variable only if its value matches the
reference one.
* lib/envop.h (environ_unset): Change proto.
* src/pies.c (parse_legacy_env): Minor changes.
(_cb_env_unset): Allow to specify value.
* src/progman.c (run_command): Define PIES_MASTER_PID.
* tests/env.at: Check the legacy env syntax.
* tests/envop.at: Additional checks.
Diffstat (limited to 'tests/envop.at')
-rw-r--r-- | tests/envop.at | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/envop.at b/tests/envop.at index 6f634fb..2b857f5 100644 --- a/tests/envop.at +++ b/tests/envop.at | |||
@@ -97,5 +97,28 @@ PWD="/home" | |||
97 | USER="user" | 97 | USER="user" |
98 | ]) | 98 | ]) |
99 | 99 | ||
100 | ENVTEST([unset with value],[unset],[-unset 'LOGIN=user'], | ||
101 | [HOME="/home/user" | ||
102 | LC_ALL="C" | ||
103 | LC_CTYPE="C" | ||
104 | LC_MESSAGES="C" | ||
105 | LC_NUMERIC="C" | ||
106 | PATH="/usr/local/bin:/usr/bin:/bin" | ||
107 | PWD="/home" | ||
108 | USER="user" | ||
109 | ]) | ||
110 | |||
111 | ENVTEST([unset with value (mismatch)],[unset],[-unset 'LOGIN=another'], | ||
112 | [HOME="/home/user" | ||
113 | LC_ALL="C" | ||
114 | LC_CTYPE="C" | ||
115 | LC_MESSAGES="C" | ||
116 | LC_NUMERIC="C" | ||
117 | LOGIN="user" | ||
118 | PATH="/usr/local/bin:/usr/bin:/bin" | ||
119 | PWD="/home" | ||
120 | USER="user" | ||
121 | ]) | ||
122 | |||
100 | m4_popdef([ENVTEST]) | 123 | m4_popdef([ENVTEST]) |
101 | 124 | ||