Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49539 - bash-completion breaks "set"
Summary: bash-completion breaks "set"
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Birchinger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 15:02 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2004-05-01 06:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info output (emerge.info,1.97 KB, text/plain)
2004-05-01 00:37 UTC, Christoph Brill (egore) (RESIGNED)
Details
set output (set.out,118.08 KB, text/plain)
2004-05-01 00:38 UTC, Christoph Brill (egore) (RESIGNED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2004-04-30 15:02:02 UTC
if i use bash-completion (added 
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
to .bashrc) the set command has some strange output (a shell-script-source). If i disable bash-completion it works fine.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-04-30 15:28:14 UTC
Lots more information needed in order to help you out.  post the output of
emerge --info as requested on the bug submission page and post specific output
or error messages that you're seeing.  Thanks.
Comment 2 Christoph Brill (egore) (RESIGNED) 2004-05-01 00:37:41 UTC
Created attachment 30431 [details]
emerge info output
Comment 3 Christoph Brill (egore) (RESIGNED) 2004-05-01 00:38:41 UTC
Created attachment 30432 [details]
set output
Comment 4 Christian Birchinger (RETIRED) gentoo-dev 2004-05-01 06:45:28 UTC
That is because "set" at least on bash also displays all functions too.
bash-completion is done entirely with such functions.

The variables are still there at the top of the output (use `set | less`).

I understand it's annoying i dislike that behavior too but it's the way
bash works.

I even did an alias to list vars:
alias var='set | while read i && [[ "$i" != *\ \(\)* ]] ; do echo $i ; done'