Sourcing a directory of of config files

From: Paul Sopka <psopka_at_sopka.ch>
Date: Sun, 7 Jul 2024 15:13:43 +0200

Hey everyone

I am trying to achieve the following in execline:

Have a directory "dir/", containing the files "a", "b" and "c", possibly
more.

Each file is filled with key=value lines.

Is there an elegant way to source all the files in "dir/" into
environment variables of key=value, without writing to a temporary file
and sourcing that at the end?

If "a" and "b" both contain the same key, the value in "b" should
overwrite that in "a", but that is probably immanent anyway.

Those environment variables need to then be available to all following
programs.

Any suggestions how to do that in execline?


Paul

Received on Sun Jul 07 2024 - 15:13:43 CEST

This archive was generated by hypermail 2.4.0 : Sun Jul 07 2024 - 15:14:36 CEST