[Rpm-maint] [PATCH] Expand $HOME by hand in the default for %_topdir

Panu Matilainen pmatilai at redhat.com
Fri Jan 16 07:15:43 UTC 2009

On Tue, 13 Jan 2009, Adam Jackson wrote:

> From: Adam Jackson <ajax at redhat.com>
> Doing it as %(echo $HOME) means you'll fork a subshell every time you
> need the value of %_topdir, which is just wasteful.

True... thanks for the patch, but instead of hardwiring special logic 
about HOME I added a getenv macro - avoids the subshell and may be 
beneficial for other uses too:

 	- Panu -

More information about the Rpm-maint mailing list