envsubst: argument list too long

927 views Asked by At

I have an exported variable and a template file. But when I use envsubst, I get the error argument list too long.

I use envsubst (GNU gettext-runtime) 0.21.1

The problem seems to come from the size of this exported variable, it is 131713 characters long. If I reduce it to 1k, it works.

Do you have a solution ?

1

There are 1 answers

0
Iglou.eu On

Solution given by "Charles Duffy" with a very interesting explanation.

Setting environment variable to a large value -> "Argument list too long"