[LTP] [RFC PATCH v7 11/11] network: Use tools to set up IPv4 and IPv6 related variables

Petr Vorel
2017-08-14T09:55:30Z

Hi Alexey,

> eval executes the output of tst_net_ip_prefix command there, not $(...),
> so basically it's the same as if we write:

> cmd="$(tst_net_ip_prefix)"

> On error $cmd is empty because you write to stderr, so eval returns 0.

> eval "$cmd"

> Or you could use '$(...)' instead of "$(...)", but in that case eval is
> kind of redundant.

Thanks for detailed explanation. We need eval (for export variables), so I'll use your
original version.

Kind regards,
Petr