bkeepers/dotenv — pull request #69 by jcamenisch (2013-11-02 02:48:58+00:00)
Title: Enable execution of interpolated shell commands

Addresses issue https://github.com/bkeepers/dotenv/issues/53

This addition allows the insertion of shell commands on the right-hand side of env variable assignments, using the `$(...)` notation.

The feature is disabled for Ruby versions <= 1.8.7. I found it most effective to use a recursive expression in the regex, in order to support parentheses inside embedded commands.