Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 4
    This is brittle. It does not allow comments in the input file, does not handle quoted variable values properly, and fails on multi-line variables. Granted I don't have many multi-line variables, but I do use comments regularly and often need to use quotes for variable values. Commented Jul 24, 2019 at 15:53
  • @Louis: These issues can be fixed with little effort (see my answer below if you mind). The nice thing about this approach is that it is bash-only, single-line and no source processing (arbitrary script execution). Commented Feb 1, 2022 at 19:39