Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-22 Thread Art Nikpal
On Mon, Nov 22, 2021 at 4:52 PM Wolfgang Denk wrote: > > Dear Artem, > > In message > you > wrote: > > > > > > > > next examples just demonstrate how its works for already defined env > > > > variables which contain other variables (like storred env variables) > > > > > > Which next examples? >

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-22 Thread Wolfgang Denk
Dear Artem, In message you wrote: > > > > > > next examples just demonstrate how its works for already defined env > > > variables which contain other variables (like storred env variables) > > > > Which next examples? > > Usage examples (from commit message): > > => setenv a hello; setenv b wor

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-22 Thread Art Nikpal
On Sat, Nov 20, 2021 at 8:36 PM Wolfgang Denk wrote: > > Dear Artem, > > In message > you > wrote: > > > > next examples just demonstrate how its works for already defined env > > variables which contain other variables (like storred env variables) > > Which next examples? > > > sure I know abo

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-22 Thread Art Nikpal
On Sat, Nov 20, 2021 at 8:36 PM Wolfgang Denk wrote: > > Dear Artem, > > In message > you > wrote: > > > > next examples just demonstrate how its works for already defined env > > variables which contain other variables (like storred env variables) > > Which next examples? Usage examples (from

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-20 Thread Wolfgang Denk
Dear Artem, In message you wrote: > > next examples just demonstrate how its works for already defined env > variables which contain other variables (like storred env variables) Which next examples? > sure I know about this ! see my prev message please . Which exact message are you referring

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-19 Thread Art Nikpal
hi Wolfgang tnx for your comments On Fri, Nov 19, 2021 at 3:49 PM Wolfgang Denk wrote: > > Dear Artem, > > In message <2029043647.1251416-1-...@khadas.com> you wrote: > > Add possibility setup env variable with additional resolving vars inside > > value. > > Hm... if you want to evaluate vari

Re: [PATCH v2 0/2] env: setenv add resolve value option

2021-11-18 Thread Wolfgang Denk
Dear Artem, In message <2029043647.1251416-1-...@khadas.com> you wrote: > Add possibility setup env variable with additional resolving vars inside > value. Hm... if you want to evaluate variables, you should not prevent the shell to do that by enclosing them in apostrophes? > Usage examples:

[PATCH v2 0/2] env: setenv add resolve value option

2021-11-18 Thread Artem Lapkin
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