ghc-pkg: don't expand ${name}-style env vars by default
authorDuncan Coutts <duncan@well-typed.com>
Mon, 23 May 2011 19:12:50 +0000 (20:12 +0100)
committerDuncan Coutts <duncan@well-typed.com>
Wed, 25 May 2011 11:16:56 +0000 (12:16 +0100)
commit6ef41c263075b9399efa35850a7e5b0046335ef8
treed2868bb9c987f5568b16ccfe1209ac7ce5033851
parent7256b301f0fde617e04c8dc47a223b30f1f6eae2
ghc-pkg: don't expand ${name}-style env vars by default

For shell-based build systems the feature is still available as:
  ghc-pkg register --expand-env-vars

Historically, ghc-pkg allowed environment variables to appear in the
input files for ghc-pkg register. They are not stored in the package
database but are expanded upon registration. This feature helped for
build systems based on makefiles and shell scripts. These days the
vast majority of such files are generated by Cabal and we don't want
any ${name} strings (e.g. perhaps in a package description) getting
accidentally interpreted as an environment variable.
utils/ghc-pkg/Main.hs