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

2022-04-08 Thread Tom Rini
On Fri, Apr 08, 2022 at 09:09:41AM -0400, Sean Anderson wrote: > On 4/7/22 2:05 PM, Tom Rini wrote: > > On Fri, Nov 19, 2021 at 12:36:46PM +0800, Artem Lapkin wrote: > > > Add possibility setup env variable with additional resolving vars inside > > > > > value. > > > > > > Usage examples: > > >

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

2022-04-08 Thread Sean Anderson
On 4/7/22 2:05 PM, Tom Rini wrote: On Fri, Nov 19, 2021 at 12:36:46PM +0800, Artem Lapkin wrote: 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

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

2022-04-07 Thread Tom Rini
On Fri, Nov 19, 2021 at 12:36:46PM +0800, Artem Lapkin wrote: > 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! hell

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

2021-11-24 Thread Simon Glass
On Thu, 18 Nov 2021 at 21:37, Artem Lapkin wrote: > > 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... > > /*

[PATCH v2 1/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