env: setenv add resolve value option
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 12 repliesIn review
- v11 patch 4 repliesSuperseded
Changes in v2 from the cover letter
_ fix comments style
_ add comment include/exports.h
_ remake strcpy to strdup
_ env_resolve minimize
_ test added: test/py/tests/test_env.py: test_env_resovle
---
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | env: setenv add resolve value optioncmd/ include/ include/ +1 more | +56 | 4 replies | |
| 2/2 | test: env: deep resolve value testingtest/ | +24 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] env: setenv add resolve value option
Add possibility setup env variable with additional resolving vars inside value.
Usage examples:
=> setenv a hello; setenv b world; setenv c '${a} ${b}' => setenv -r d '${c}! ${a}...'
=> printenv d
d=hello world! hello...
/* internal usage example */env_resolve("d", "${c}! ${a}...");
/* d="hello world! hello..." */
Artem Lapkin (2):
env: setenv add resolve value option
test: env: deep resolve value testing
---
V2 changes:
_ fix comments style
_ add comment include/exports.h
_ remake strcpy to strdup
_ env_resolve minimize
_ test added: test/py/tests/test_env.py: test_env_resovle
---
cmd/nvedit.c | 43 ++++++++++++++++++++++++++++++++++++++- include/_exports.h | 1 + include/env.h | 11 ++++++++++ include/exports.h | 2 ++ test/py/tests/test_env.py | 24 ++++++++++++++++++++++ 5 files changed, 80 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1