PDA

View Full Version : wrecked environmental variable found



Lex
11-23-2003, 03:57 AM
Hi, I'm running knoppix from CD without any cheat codes. I am testing it in a VMWare virtual machine but it shouldn't matter in my case.

the following is about KNOPPIX_V3.3-2003-11-19-DE

Once KDE is loaded I press the shell button and type "set" and press the enter button. This gives me a list of actual shell's environmental variables, which is in my case really long so I am using "set > output" instead (you can try it yourself too ;)). What I see is that the variable named "_" (underline) looks like a piece of script which probably should not be a env. variable so I think there is a little bug somewhere.

I have experienced this with other KNOPPIX builds too.

Here is the beginning of the output of 09_24:


BASH=/bin/bash
BASH_COMPLETION=/etc/bash_completion
BASH_COMPLETION_DIR=/etc/bash_completion.d
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i386-pc-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
CHARSET=iso8859-15
COLORTERM=
COLUMNS=80
COUNTRY=de
DIRSTACK=()
DISPLAY=:0.0
EUID=1000
GROUPS=()
GTK_RC_FILES=/etc/gtk/gtkrc:/home/knoppix/.gtkrc:/home/knoppix/.gtkrc-kde
HISTFILE=/home/knoppix/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/knoppix
HOSTNAME=Knoppix
HOSTTYPE=i386
HZ=100
IFS=$' \t\n'
KDEDIR=/usr
KDE_MULTIHEAD=false
KONSOLE_DCOP='DCOPRef(konsole-587,konsole)'
KONSOLE_DCOP_SESSION='DCOPRef(konsole-587,session-1)'
LANG=de_DE@euro
LANGUAGE=de
LC_ALL=de_DE@euro
LINES=25
LOGNAME=knoppix
MACHTYPE=i386-pc-linux-gnu
MAIL=/var/mail/knoppix
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games:.
PIPESTATUS=([0]="0")
PPID=587
PS1=$'\\[\E[1;36m\\]\\u@ttyp0[\\W]\\$\\[\E[0;39m\\] '
PS2='> '
PS4='+ '
PWD=/ramdisk/home/knoppix
SESSION_MANAGER=local/Knoppix:/tmp/.ICE-unix/560
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:int eractive-comments:monitor
SHLVL=2
TERM=xterm
TTY=ttyp0
UID=1000
USER=knoppix
XDM_MANAGED=TRUE
XMODIFIERS=
_=set
_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=${COMP_WORDS[COMP_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|show?(pkg|src)) ]]; then
special=${COMP_WORDS[i]};
fi;
done;
fi;
if [ -n "$special" ]; then
case $special in
add)
_filedir;
return 0
;;
*)
COMPREPLY=($( apt-cache pkgnames $cur 2> /dev/null ));
return 0
;;
esac;
fi;
case "$prev" in
-@(c|p|s|-config-file|-@(pkg|src)-cache))
_filedir;
return 0
;;
search)
if [[ "$cur" != -* ]]; then
return 0;
fi
;;
esac;
if [[ "$cur" == -* ]]; then
COMPREPLY=($( compgen -W '-h -v -p -s -q -i -f -a -g -c \
-o --help --version --pkg-cache --src-cache \
--quiet --important --full --all-versions \
--generate --no-generate --names-only \
--all-names --config-file --option \
--recurse' -- $cur ));
else
COMPREPLY=($( compgen -W 'add gencaches showpkg show stats \
dumpavail unmet check search dump dotty policy \
depends pkgnames showsrc' -- $cur ));
fi;
return 0
}
_apt_get ()
{
local cur prev special i;
COMPREPLY=();
cur=${COMP_WORDS[COMP_CWORD]};
prev=${COMP_WORDS[COMP_CWORD-1]};
for (( i=0 ; i < ${#COMP_WORDS[@]}-1 ; i++ ))
do
if [[ ${COMP_WORDS[i]} == @(install|remove|source|build-dep) ]]; then
special=${COMP_WORDS[i]};
fi;
done;
if [ -n "$special" ]; then
case $special in
remove)
if [ -f /etc/debian_version ]; then
COMPREPLY=($( _comp-dpkg-installed-packages $cur ));
else
_rpm_installed_packages;
fi;
return 0
;;
*)
COMPREPLY=($( apt-cache pkgnames $cur 2> /dev/null ));
return 0
;;
esac;
fi;
case "$prev" in
-@(c|-config-file))
_filedir;
return 0
;;
-@(t|-target-release|-default-release))
COMPREPLY=($( apt-cache policy | grep "release.o=Debian,a=$cur" | sed -e "s/.*a=\(\w*\).*/\1/" | uniq ));
return 0
;;
esac;
if [[ "$cur" == -* ]]; then
COMPREPLY=($( compgen -W '-d -f -h -v -m -q -s -y \
-u -t -b -c -o --download-only --fix-broken \
--help --version --ignore-missing \
--fix-missing --no-download --quiet --simulate \
--just-print --dry-run --recon --no-act --yes \
--assume-yes --show-upgraded --only-source \
--compile --build --ignore-hold \
--target-release --no-upgrade --force-yes \
--print-uris --purge --reinstall \
--list-cleanup --default-release \
--trivial-only --no-remove --diff-only \
--tar-only --config-file --option' -- $cur ));
else
COMPREPLY=($( compgen -W 'update upgrade dselect-upgrade \
dist-upgrade install remove source build-dep \
check clean autoclean' -- $cur ));
fi;
return 0
}
_cardctl ()
{
local cur;
COMPREPLY=();
cur=${COMP_WORDS[COMP_CWORD]};
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=($( compgen -W 'status config ident suspend \
resume reset eject insert scheme' -- $cur ));
fi
}
_cd ()
{
local IFS='
' cur=${COMP_WORDS[COMP_CWORD]} i j k;
if [[ "$cur" == ?(\\)\$* ]]; then
COMPREPLY=($( compgen -v -P '$' -- "${cur#?(\\)$}" ));
return 0;
fi;
if [ -z "${CDPATH:-}" ] || [[ "$cur" == ?(.)?(.)/* ]]; then
_filedir -d;
return 0;
fi;
IFS='
';
for i in ${CDPATH//:/' '};
do
k=${#COMPREPLY[@]};
for j in $( compgen -d $i/$cur );
do
COMPREPLY[$k]=${j#$i/};
k=$((++k));
done;
done;
_filedir -d;
return 0
}
_chgrp ()
{
local cur prev;
COMPREPLY=();
cur=${COMP_WORDS[COMP_CWORD]};
prev=${COMP_WORDS[COMP_CWORD-1]};
if [[ "$cur" == -* ]]; then
COMPREPLY=($( compgen -W '-c -h -f -R -v --changes \
--dereference --no-dereference --silent --quiet \
--reference= --recursive --verbose --help --version' -- $cur ));
return 0;