On Tue, Sep 18, 2007 at 10:08:35 -0500, Kent West wrote:
> 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):
>

[...]

>> _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.

I think this is due to bash_completion now being enabled in the default
.bashrc from /etc/skel. These three lines are responsible:

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

You can comment them out if the bash_completion code bothers you.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to