1

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 ?

Iglou.eu
  • 11
  • 3
  • look at [this](https://unix.stackexchange.com/questions/45583/argument-list-too-long-how-do-i-deal-with-it-without-changing-my-command) maybe it helps – Ahmed Sbai Jan 19 '23 at 03:16

1 Answers1

0

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

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

Iglou.eu
  • 11
  • 3