[Bugs] [Bug 1425325] gluster bash completion leaks TOP=0 into the environment
bugzilla at redhat.com
bugzilla at redhat.com
Wed Aug 23 07:09:47 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1425325
Anoop C S <anoopcs at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |needinfo?(rjones at redhat.com
| |)
--- Comment #1 from Anoop C S <anoopcs at redhat.com> ---
> It looks like "TOP" is not the only variable that leaks:
>
> From <glusterfs.git>/extras/command-completion/gluster.bash:
> 285 declare FINAL_LIST=''
> 286 declare LIST=''
> 287 declare -i TOP=0
What are the different ways in which such variables can be leaked into main
script? One way that I can think of is by sourcing the child script(in this
case gluster.bash) into main script(whatever it is). Otherwise these variables
won't leak to outside world as they are used inside subshell.
Please feel free to correct me if I am wrong.
@Richard,
Are you sourcing the gluster bash completion script into your specific script?
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list