bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BASH_FUNC__ appearing in environment


From: steveT
Subject: BASH_FUNC__ appearing in environment
Date: Thu, 27 Nov 2014 03:43:05 -0800 (PST)
User-agent: G2/1.0

I am not sure if this is the correct place to raise this - I have tried 
specific Fedora and bash forums, but with no joy so far.

I am running bash:
(Linux)D610 :stevet : /etc> bash --version
GNU bash, version 4.2.53(1)-release (i686-redhat-linux-gnu)

...under Fedora 20.

I tend to use gnome terminal and my base login shell is bash. 

The 'problem' (if it is a problem), is that from time to time, when I execute 
an 'env' command to see my environment, I will get an entry such as this appear:

BASH_FUNC__rcs()=() { local cur prev words cword;
_init_completion || return;
local file dir i;
file=${cur##*/};
dir=${cur%/*};
[[ $file == $dir ]] && dir=.;
COMPREPLY=($( compgen -f "$dir/RCS/$file" ));
for ((i=0; i < ${#COMPREPLY[@]}; i++ ))
do
file=${COMPREPLY[$i]##*/};
dir=${COMPREPLY[$i]%RCS/*};
COMPREPLY[$i]=$dir$file;
done;
COMPREPLY+=($( compgen -G "$dir/$file*,v" ));
for ((i=0; i < ${#COMPREPLY[@]}; i++ ))
do
COMPREPLY[$i]=${COMPREPLY[$i]%,v};
done;
[[ ${#COMPREPLY[@]} -eq 0 && $1 == ci ]] && _filedir || _filedir -d
}

This may be expected behaviour, but it seems so random. The above seems to be 
related to rcs, but I also intermittently get similar entries for 
BASH_FUNC__sudo. I am not sure if these functions appearing in my environment 
poses any sort of issue - but I have never seen such entries appear before.

Any ideas as to what they are and why/when/how they are appearing in my 
environment?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]