[mythtv] [PATCH] Add option to mythfilldatabase to change

Mark Spieth mark at dclabs.com.au
Sun May 1 00:57:35 UTC 2005


> Does anyone know how to make something like:
> 
> export HOME=~${USER}
> 
> actually work in sh?
> 
> export HOME=/home/mythtv
> and
> export HOME=~mythtv
> 
> both set HOME to /home/mythtv
> 
> but having USER as a variable sets HOME to "~mythtv" which is then not 
> expanded into "/home/mythtv".
> 
> Anyway, it seems adding one of the first two to the init script fixes 
> the problem I was having, so that patch is not needed.

try 
export HOME=`eval "echo ~$USER"`
may be a better way of course but this works
mark


More information about the mythtv-dev mailing list