bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BASH_FUNC__ appearing in environment


From: konsolebox
Subject: Re: BASH_FUNC__ appearing in environment
Date: Fri, 28 Nov 2014 01:57:24 +0800

On Fri, Nov 28, 2014 at 12:36 AM, steveT <address@hidden> wrote:
> Is there any way that I can trace them back to their 'creator'?

Besides checking common startup files like /etc/profile and ~/.profile or
~/.bashrc (see 
http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html),
you can also try to debug bash as it loads in login mode:

# bash -lx &> out.txt
# exit

Read out.txt, try to find those declarations and pay close attention to
lines before it that calls another file with . or source.  If you don't
find any kind of declaration, it's likely that those functions are declared
somewhere during system init and that would depend on your init system.

If it's me I'd just do fgrep something /etc -r (not -R unless I'm sure it's
safe) and see if I can find something useful.  It may still not be enough
though - especially if those declarations are hard-coded in a binary
executable or data file.  You can also consider searching through the files
of the base package of your init system - or even examine the sources if
you can.

Cheers,
konsolebox



reply via email to

[Prev in Thread] Current Thread [Next in Thread]