On Thu, Jul 31, 2014 at 04:45:20PM -0700, Linda Walsh wrote:
> Also noticing broken-ness upon using "sudo" -- functions defined
> at login are undefined:
> 
> >typeset -f|grep titlebar   
> titlebar ()
> declare -fx titlebar

Some implementations of sudo clear the environment before elevating
privileges.  Clearing the environment would also remove exported
functions, which are encoded as environment variables.  You might be
able to configure sudo to preserve your environment, but doing so is
well beyond the scope of bug-bash.

Reply via email to