O'Reilly logo
  • Jason Korpics thinks this is interesting:

%_home %(echo $HOME)


Cover of Fedora Linux


This does NOT work, the correct syntax is: %_home %{expand:%%(echo $HOME)} or you could do %{expand:%%(cd; pwd)} or finally, you can use %(cd; pwd). Note that the use of he cd command will not result in you being in your home directory when the rpm or rpmbuild programs end.