Search code examples
environment-variablesgettextenvsubst

envsubst: argument list too long


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 ?


Solution

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

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