2009-06-09 22:49:53 +02:00
|
|
|
# bashrc file for DejaGnu testsuite
|
|
|
|
|
|
|
|
# Use emacs key bindings
|
|
|
|
set -o emacs
|
|
|
|
# Use bash strict mode
|
|
|
|
set -o posix
|
|
|
|
# Unset `command_not_found_handle' as defined on Debian/Ubuntu, because this
|
|
|
|
# troubles and slows down testing
|
|
|
|
unset -f command_not_found_handle
|
2010-11-12 23:35:36 +01:00
|
|
|
# Set fixed prompt `/@'
|
2009-06-09 22:49:53 +02:00
|
|
|
TESTDIR=$(pwd)
|
2010-11-12 23:35:36 +01:00
|
|
|
export PS1='/@'
|
2009-06-09 22:49:53 +02:00
|
|
|
export PS2='> '
|
|
|
|
# Configure readline
|
2010-11-12 23:35:36 +01:00
|
|
|
export INPUTRC=$SRCDIR/config/inputrc
|
2009-11-18 23:45:16 +01:00
|
|
|
# When not running via cron, avoid escape junk at beginning of line from
|
|
|
|
# readline, see e.g. http://bugs.gentoo.org/246091
|
|
|
|
[ "$CRON" ] || export TERM=dummy
|
2009-06-09 22:49:53 +02:00
|
|
|
# Ensure enough columns so expect doesn't have to care about line breaks
|
|
|
|
stty columns 150
|
2010-04-22 22:22:50 +02:00
|
|
|
# Also test completions of system administrator commands, which are
|
|
|
|
# installed via the same PATH expansion in `bash_completion.have()'
|
|
|
|
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
2009-06-09 22:49:53 +02:00
|
|
|
|
2009-08-12 22:20:56 +02:00
|
|
|
# Make sure default settings are in effect
|
|
|
|
unset -v \
|
|
|
|
COMP_CONFIGURE_HINTS \
|
|
|
|
COMP_CVS_REMOTE \
|
|
|
|
COMP_KNOWN_HOSTS_WITH_HOSTFILE \
|
|
|
|
COMP_TAR_INTERNAL_PATHS
|
|
|
|
|
|
|
|
# Load bash testsuite helper functions
|
2010-11-12 23:35:36 +01:00
|
|
|
. $SRCDIR/lib/library.sh
|
2009-10-01 20:54:51 +03:00
|
|
|
|
|
|
|
# Local variables:
|
|
|
|
# mode: shell-script
|
2009-10-04 19:42:50 +02:00
|
|
|
# sh-basic-offset: 4
|
2009-10-01 20:54:51 +03:00
|
|
|
# sh-indent-comment: t
|
2009-10-04 19:42:50 +02:00
|
|
|
# indent-tabs-mode: nil
|
2009-10-01 20:54:51 +03:00
|
|
|
# End:
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|