I'm having an issue where the output of the 'set' command gives me extra garbage and I'm wondering if anybody can help point me toward a solution. Actually, it looks like part of a script, not random garbage. Anyway, when I type set I get this output (shortened for brevity):
So, any idea why I'm getting the script stuff as output from 'set'?
If it helps, my linux at the moment is a vmware image of ubuntu 8.04 (using vmware player, not workstation or server).If you're interested, the image I'm using can be found at http://www.vmware.com/appliances/directory/1224
Code:
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_COMPLETION=/etc/bash_completion
BASH_COMPLETION_DIR=/etc/bash_completion.d
BASH_LINENO=()
BASH_SOURCE=()
..... snip (it continues like normal for a while) ....
.............
.............
WINDOWID=46137436
WINDOWPATH=7:7:7:7
XAUTHORITY=/home/user/.Xauthority
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
XDG_SESSION_COOKIE=3a7c2617118a89c0941a89564810cba3-1215613306.783332-151702627
_=set
bash205='3.2.33(1)-release'
bash205b='3.2.33(1)-release'
bash3='3.2.33(1)-release'
_alias ()
{
local cur;
COMPREPLY=();
cur=${COMP_WORDS[$COMP_CWORD]};
case "$COMP_LINE" in
*[^=])
COMPREPLY=($( compgen -A alias -S '=' -- $cur ))
;;
*=)
COMPREPLY=("$( alias ${cur%=} 2>/dev/null | sed -e 's|^alias '$cur'\(.*\)$|\1|' )")
;;
esac
}
_apt_cache ()
{
local cur prev special i;
COMPREPLY=();
cur=`_get_cword`;
prev=${COMP_WORDS[COMP_CWORD-1]};
if [ "$cur" != show ]; then
for ((i=0; i < ${#COMP_WORDS[@]}-1; i++ ))
do
if [[ ${COMP_WORDS[i]} == @(add|depends|dotty|policy|rdepends|madison|show?(pkg|src|)) ]]; then
special=${COMP_WORDS[i]};
fi;
done;
fi;
if [ -n "$special" ]; then
..... snip (you get the point, it goes on and on with other stuff) .....
.............
.............
If it helps, my linux at the moment is a vmware image of ubuntu 8.04 (using vmware player, not workstation or server).If you're interested, the image I'm using can be found at http://www.vmware.com/appliances/directory/1224
Comment