Blame test/config/bashrc

Packit 8462d6
# bashrc file for DejaGnu testsuite
Packit 8462d6
Packit 8462d6
	# Use emacs key bindings
Packit 8462d6
set -o emacs
Packit 8462d6
	# Use bash strict mode
Packit 8462d6
set -o posix
Packit 8462d6
	# Unset `command_not_found_handle' as defined on Debian/Ubuntu, because this
Packit 8462d6
	# troubles and slows down testing
Packit 8462d6
unset -f command_not_found_handle
Packit 8462d6
	# Set fixed prompt `/@'
Packit 8462d6
TESTDIR=$(pwd)
Packit 8462d6
export PS1='/@'
Packit 8462d6
export PS2='> '
Packit 8462d6
	# Configure readline
Packit 8462d6
export INPUTRC=$SRCDIR/config/inputrc
Packit 8462d6
    # When not running via cron, avoid escape junk at beginning of line from
Packit 8462d6
    # readline, see e.g.  http://bugs.gentoo.org/246091
Packit 8462d6
[ "$CRON" ] || export TERM=dumb
Packit 8462d6
	# Ensure enough columns so expect doesn't have to care about line breaks
Packit 8462d6
stty columns 150
Packit 8462d6
    # Also test completions of system administrator commands, which are
Packit 8462d6
    # installed via the same PATH expansion in `bash_completion.have()'
Packit 8462d6
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
Packit 8462d6
    # ...as well as games on some systems not in PATH by default:
Packit 8462d6
export PATH=$PATH:/usr/games:/usr/local/games
Packit 8462d6
    # For clean test state, avoid sourcing user's ~/.bash_completion
Packit 8462d6
export BASH_COMPLETION_USER_FILE=/dev/null
Packit 8462d6
    # ...and avoid stuff in BASH_COMPLETION_USER_DIR overriding in-tree
Packit 8462d6
    # completions. The user dir is first in the lookup path, so this should also
Packit 8462d6
    # give precedence to the in-tree "completions" dir over other ones, e.g.
Packit 8462d6
    # the one possibly in /usr/share/bash-completion.
Packit 8462d6
export BASH_COMPLETION_USER_DIR=$(cd "$SRCDIR/.."; pwd)
Packit 8462d6
Packit 8462d6
	# Make sure default settings are in effect
Packit 8462d6
unset -v \
Packit 8462d6
    COMP_CONFIGURE_HINTS \
Packit 8462d6
    COMP_CVS_REMOTE \
Packit 8462d6
    COMP_KNOWN_HOSTS_WITH_HOSTFILE \
Packit 8462d6
    COMP_TAR_INTERNAL_PATHS
Packit 8462d6
Packit 8462d6
	# Load bash testsuite helper functions
Packit 8462d6
. $SRCDIR/lib/library.sh
Packit 8462d6
Packit 8462d6
# Local variables:
Packit 8462d6
# mode: shell-script
Packit 8462d6
# End:
Packit 8462d6
# ex: filetype=sh