[LTP] [RFC PATCH v7 11/11] network: Use tools to set up IPv4 and IPv6 related variables
Petr Vorel
pvorel@suse.cz
Mon Aug 14 11:55:30 CEST 2017
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
More information about the ltp
mailing list