Re: .bashrc messes up 'set'
On 09/18/2007 10:08 AM, 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. [...] 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! It's not really a problem. That code seems to relate to bash_completion. Look at /etc/bash_completion and /etc/bash_completion.d/ if you're interested. Or just ignore it. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: .bashrc messes up 'set'
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 > > >> >> 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]
.bashrc messes up 'set'
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): [EMAIL PROTECTED]:~$ set | more BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() 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 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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]