> I was having a problem with LPR (I am still using GNUlpr) not finding my
> fonts
> when I printed. I found that the filter script was not a login script. I
> changed that but found that it still didn't find the fonts in $HOME/.fonts.
>
> Some debugging and I found that the problem is that despite the fact that
> USER
> is set correctly to the user that started the print job that HOME is not set
> (it
> is blank). This appears to me to be a Bash bug.
Bash will give HOME a default value if it's unset when a login shell starts,
but otherwise will not change or set it. It will not auto-export the variable,
either.
It's not really the shell's business to be setting HOME.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/