Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

.bashrc messes up 'set'

From: Kent West <westk(at)acu.edu>
Date: Tue Sep 18 2007 - 11:08:35 EDT


I've just discovered that a stable install (4.0, (with rdiff-backup pulled from testing)) has a wonky (that's a technical term, you understand ... ;-) ) /etc/skel/bashrc apparently.

If I ssh in as a freshly-created user and then run the "set" command, I get pages and pages of script-looking text, seemingly related to ImageMagick, as below (most of it snipped out as marked):

> chyntt@goshen:~$ set | more
> BASH=/bin/bash
> BASH_ARGC=()
> BASH_ARGV=()
<snip normal stuff you'd expect to see>

> SSH_TTY=/dev/pts/1
> TERM=xterm
> UID=1024
> USER=chyntt
> _=set
> bash205='3.1.17(1)-release'
> bash205b='3.1.17(1)-release'
> bash3='3.1.17(1)-release'
> _ImageMagick ()
> {
> local prev;
> prev=${COMP_WORDS[COMP_CWORD-1]};
> case "$prev" in
> -channel)
> COMPREPLY=($( compgen -W 'Red Green Blue Opacity \
> Matte Cyan Magenta Yellow Black' --
> $cur ));
> return 0

<snip pages and pages of similar scripting stuff>

>

> COMPREPLY=($( command ls $admindir | grep "^$cur" ))
> }
> set_prefix ()
> {
> [ -z ${prefix:-} ] || prefix=${cur%/*}/;
> [ -r ${prefix:-}CVS/Entries ] || prefix=""
> }

If I rename/delete/move the user's .bashrc and then log out / back in, the "set" command returns what would be expected.

I don't see anything particularly odd in /etc/skel/bashrc (but then, I'm not a scripter). I wasn't able to find anything about this on the 'net. I'm mostly just wondering if other folks have seen this.

Thanks!

-- 
Kent


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Sep 18 11:09:16 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 05:00:47 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library