3 ms·
> If it were `export val="$( ... )"` you'd need the quotes again. No. That's also recognized as an assignment by bash[1]: > PARAMETERS... A variable may be as
by jolmg 5y ago
> If it were `export val="$( ... )"` you'd need the quotes again.
No. That's also recognized as an assignment by bash[1]:
> PARAMETERS... A variable may be assigned to by a statement of the form `name=[value]`... Word splitting is not performed... Assignment statements may also appear as arguments to the alias, declare, typeset, export, readonly, and local builtin commands (declaration commands).
[1] https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameters https://www.gnu.org/software/bash/manual/bash.html#Shell-Par...