# We permit later reinitialization by unsetting it.
# During our execution we forbid spawning to prevent deadlock by:
# source /etc/bashrc
# We permit later reinitialization by unsetting it.
# During our execution we forbid spawning to prevent deadlock by:
# source /etc/bashrc
# Use reverse order of preferred directories:
# gid(1) dependency on: /opt/sfw/bin
# EUID="`id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null || gid -u`"
# Use reverse order of preferred directories:
# gid(1) dependency on: /opt/sfw/bin
# EUID="`id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null || gid -u`"
[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin"
_bash_profile_addpath -f PATH "/usr/local/bin"
[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin"
_bash_profile_addpath -f PATH "/usr/local/bin"
_bash_profile_addpath -f MANPATH "/usr/X11R6/man"
_bash_profile_addpath -f MANPATH "/usr/share/man"
_bash_profile_addpath -f MANPATH "/usr/local/man"
_bash_profile_addpath -s JAVA_HOME "/usr/java"
_bash_profile_addpath -s JAVA_HOME "/usr/local/java"
uname_p="`uname -p 2>/dev/null || uname -m`"
_bash_profile_addpath -f MANPATH "/usr/X11R6/man"
_bash_profile_addpath -f MANPATH "/usr/share/man"
_bash_profile_addpath -f MANPATH "/usr/local/man"
_bash_profile_addpath -s JAVA_HOME "/usr/java"
_bash_profile_addpath -s JAVA_HOME "/usr/local/java"
uname_p="`uname -p 2>/dev/null || uname -m`"
-[ "`uname`" = "SunOS" ] && _bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/Netscape/dist/lib"
-for family in "$HOME";do
- for arch in "$family" $family/$uname_p;do
+for family in $HOME;do
+ for arch in $family $family/$uname_p;do
_bash_profile_addpath -s JAVA_HOME "$arch/java"
[ $EUID -eq 0 ] && _bash_profile_addpath PATH "$arch/sbin"
_bash_profile_addpath -s JAVA_HOME "$arch/java"
[ $EUID -eq 0 ] && _bash_profile_addpath PATH "$arch/sbin"
[ -n "$JAVA_HOME" ] && _bash_profile_addpath PATH "$JAVA_HOME/bin"
_bash_profile_addpath -s CVSROOT "$HOME/pserver/cvs"
_bash_profile_addpath -s CVSROOT "$HOME/cvs"
[ -n "$JAVA_HOME" ] && _bash_profile_addpath PATH "$JAVA_HOME/bin"
_bash_profile_addpath -s CVSROOT "$HOME/pserver/cvs"
_bash_profile_addpath -s CVSROOT "$HOME/cvs"
-for _perldir in $(eval "echo {/usr,$HOME}{/lib{,64}/perl{,5},/share/perl}{,/site_perl}$_perlpatt");do
- _bash_profile_addpath -f PERLLIB "$_perldir"
+for _perldir in $(eval "echo {/usr,$HOME}{/lib{64,}/perl{,5},/share/perl}{,/site_perl}$_perlpatt");do
+ # $PERL5LIB overrides $PERLLIB and it is being used by: /etc/profile.d/atrpms.*
+ _bash_profile_addpath -f PERL5LIB "$_perldir"
for i in tar ls find cp mv ln md5sum du grep ar chown chmod tail;do
# Prevent g$i from system directory overriding customized $i binary
for i in tar ls find cp mv ln md5sum du grep ar chown chmod tail;do
# Prevent g$i from system directory overriding customized $i binary
alias cvsignoresrm='cvsutil --ignores --rm'
alias cvsignoresrmall='cvsutil --ignores --workings --rm'
alias cvsignoresallrm='cvsutil --ignores --workings --rm'
alias cvsignoresrm='cvsutil --ignores --rm'
alias cvsignoresrmall='cvsutil --ignores --workings --rm'
alias cvsignoresallrm='cvsutil --ignores --workings --rm'
alias disass='objdump -D --target=binary --architecture=i386'
alias cal='cal -m'
alias vncreadonly='vncviewer -FullColor -Shared -ViewOnly'
alias diff='diff -u'
alias disass='objdump -D --target=binary --architecture=i386'
alias cal='cal -m'
alias vncreadonly='vncviewer -FullColor -Shared -ViewOnly'
alias diff='diff -u'
-export GREP_OPTIONS="--binary-files=without-match --directories=skip --exclude=tags --exclude=TAGS --exclude=CVS"
+export GREP_OPTIONS="--binary-files=without-match --directories=skip"
+if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then
+ export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog*"
+ # FIXME: grep(1) ignores subdirectories for --exclude.
+ #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
+fi
if [ -n "$PS1" ];then # set only in interactive sessions
export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
export PS1='\[\017\]'"$PS1" # \017=std charmap
if [ -n "$PS1" ];then # set only in interactive sessions
export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
export PS1='\[\017\]'"$PS1" # \017=std charmap
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$PWD/.bashrc"
[ -r "$_selfabs" ] || unset _selfabs
[ -n "$_selfabs" ] && export VIMINIT="source `echo "$_selfabs"|sed 's/[.]bashrc$/.vimrc/'`"
[ "$_selfabs" = "${_selfabs#/}" ] && _selfabs="$PWD/.bashrc"
[ -r "$_selfabs" ] || unset _selfabs
[ -n "$_selfabs" ] && export VIMINIT="source `echo "$_selfabs"|sed 's/[.]bashrc$/.vimrc/'`"
`; }; export -f finame
function mkcd { mkdir -p "$1"; cd "$1"; }; export -f mkcd
function pushdmk { mkdir -p "$1"; pushd "$1"; }; export -f pushdmk
`; }; export -f finame
function mkcd { mkdir -p "$1"; cd "$1"; }; export -f mkcd
function pushdmk { mkdir -p "$1"; pushd "$1"; }; export -f pushdmk
function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; }; export -f tohex
function edall {
find -type f|while read -r i;do
function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; }; export -f tohex
function edall {
find -type f|while read -r i;do
); };export -f mi
function ctags {(unset ctags;
if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
); };export -f mi
function ctags {(unset ctags;
if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
fi; );}; export -f ctags
function ctagsh { ctags "--c-types=+px"; }; export -f ctagsh
function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan
fi; );}; export -f ctags
function ctagsh { ctags "--c-types=+px"; }; export -f ctagsh
function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan
function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi
function cvs {(unset cvs;
local _opts _opts_d _now _line _o
function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi
function cvs {(unset cvs;
local _opts _opts_d _now _line _o