#!bash
#
# ~/.bash_env
#
# To setup Bash for non-interactive, non-login shells set the environment
# variable BASH_ENV to this script.
#
#     BASH=~/.bash_env
#
# to let Bash execute this script when started without <-i> or <--login>. For
# example, as by the compile feature of GNU Emacs. <.bash_env> sets the path so
# that (e.g.) programs in <$HOME/bin> and Cygwin utilities are found also from
# "primitive shells."
#
# $Companion: .bashrc$
# $Writestamp: 2011-04-30 13:31:07$

#echo this is $HOME/.bash_env

export CYGWIN="$CYGWIN nodosfilewarning"

if [ -n "$CYGWIN$CYGNUSDIR" ]; then 
    # This is a Windows host with Cygwin installed to it. Newer versions of
    # Cygwin/Perl print annoying warnings when the locale could not determined,
    # e.g. with LANG="DEU" and LC_ALL="".

    if [ -z "$LC_ALL" ]; then
        if [ "$LANG" == "DEU" ]; then export LC_ALL=de_DE; else export LC_ALL=C; fi
    fi
    if [ -n "$VCINSTALLDIR" ]; then
        # bash running while Visual C++ is in charge. Cygwin tools (such as
        # /usr/bin/link) must not be found. Therefore do not alter $PATH.

        echo VCINSTALLDIR=$VCINSTALLDIR
    else
        # Cygwin sets the value for PATH in </etc/profile>, a shell-script only
        # login-shells run. The following PATH had therefore straighly been
        # copied from some </etc/profile>. YOU MUST VALIDATE IT!

        PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
    fi
fi

# It is common to have a <~/bin> folder for user-specific programs. They shall
# be found in the first place.

if [ -d ~/bin ]; then PATH=~/bin:$PATH; fi

#echo $PATH
export PATH

# Local Variables:
# coding: iso-8859-1-unix
# fill-column: 79
# End:

# end of file .bash_env