[Top][All Lists]

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

Re: execution hook

From: Bob Proulx
Subject: Re: execution hook
Date: Mon, 12 Jan 2009 22:43:31 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

eneville_ wrote:
> I was looking for a way to run a program prior to bash executing the
> program. Does anyone know of a hook that can do this, such as an environment
> that hold this hook value.

Look at the documentation for BASH_ENV in the bash manual.

       When  bash  is  started  non-interactively,  to run a shell script, for
       example, it looks for the variable BASH_ENV in the environment, expands
       its  value if it appears there, and uses the expanded value as the name
       of a file to read and execute.  Bash behaves as if the  following  com-
       mand were executed:
              if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
       but  the  value of the PATH variable is not used to search for the file


reply via email to

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