|
From: | Pádraig Brady |
Subject: | Re: Feature Request: env -f to read from file |
Date: | Thu, 28 Mar 2024 19:38:33 +0000 |
User-agent: | Mozilla Thunderbird |
On 28/03/2024 15:52, Balakrishnan Balasubramanian wrote:
When env command is used to pass extra environment variables to a program, it will be useful to read them from a file instead of command line. Instead of env MYAPP_QA_KEY=XXXXX MYAPP_QA_URL=https://qa.myapp.example.com clicommand We can use env -f qa.env clicommand This way command-line can be kept simple and easy to change to different environments instead of sourcing files.
Yes the feature has merit, and was previously discussed at: https://lists.gnu.org/archive/html/coreutils/2021-10/msg00001.html There are some subtleties to consider though. cheers, Pádraig
[Prev in Thread] | Current Thread | [Next in Thread] |