[arch-projects] [initscripts][PATCH 6/7] functions: implement a environment file parser

Tom Gundersen teg at jklm.no
Sun Nov 6 19:39:58 EST 2011


On Mon, Nov 7, 2011 at 11:27 AM, Dave Reisner <d at falconindy.com> wrote:
> ds a 'parse_envfile' function that reads files such as
> /etc/locale.conf and /etc/vconsole.conf without sourcing them as bash
> logic. Several benefits are realized from this:
>
> - Impossible to execute arbitrary code
> - Bad syntax won't prevent the entire file from being read
> - Possible to limit what variables are allowed
>

Awesome!

-t


More information about the arch-projects mailing list