git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Support environment variables in config file

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jun 4, 2007, 08:44 UTC
Message-ID
<20070604084411.GA17622@moooo.ath.cx>
In-Reply-To
<20070604072707.GE16637@admingilde.org>
Martin Waitz <tali@admingilde.org> wrote:
> Do you think the approach is ok?
Looks fine from the reading part.  Up to now
    $ git config "$key" "$value" &&
      [ "$value" = "$(git config "$key")" ] &&
      echo true
will echo true for all values (at least from the things I tried with
", \ and \n).  When interpreting $VAR this changes.  I dunno if there
are any programs out there that rely on the fact that the value you
get out of the config is exactly the same as you have put in.
> Can you see other examples where we may need $VAR support?
> Or would everybody be happy with support for ~/ in filenames?

In my config I don't even use the path to my home directory anywhere and spontaneously I can't think of any config option for which I'd use an environment variable as value.

Previous: Martin WaitzNext: Johannes Schindelin
Message 4 of 7 in “Support environment variables in config file”
  1. Support environment variables in config fileMartin Waitz, Jun 3, 2007
  2. Matthias LederhoferJun 4, 2007
  3. Martin WaitzJun 4, 2007
  4. Matthias LederhoferJun 4, 2007
  5. Johannes SchindelinJun 4, 2007
  6. Martin WaitzJun 4, 2007
  7. Johannes SchindelinJun 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.