[Bash-completion-devel] [bash-completion-Bugs][311408] DBTS 501842: complete for 'cc' also on !GNU, !Linux and !Cygwin

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Mon Apr 25 13:09:04 UTC 2011


Bugs item #311408, was changed at 2009-01-30 11:18 by Ville Skyttä 
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311408&group_id=100114

Status: Open
Priority: 2
Submitted By: David Paleino (hanska-guest)
Assigned to: Nobody (None)
Summary: DBTS 501842: complete for 'cc' also on !GNU, !Linux and !Cygwin 
Distribution: None
Originally reported in: Debian BTS
Milestone: None
Status: None
Original bug number: 501842


Initial Comment:
* Completion for the various GCC compilers occurs on any system, but
  only with a uname of GNU, Linux, or Cygwin will bash-completion add
  those same completions to the "cc" command.  bash-completion
  probably assumes that other systems will not have gcc installed as
  "cc".


----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2011-04-25 16:09

Message:
The test whether to complete cc is now userland = GNU or uname = cygwin.  Do we want to add something to the list?

We could do something like:

cc --version 2>/dev/null | grep -q GCC && complete -F _gcc cc

...but dunno if something like that is appropriate considering the test happens at completion load time (and would currently add some to the slowness of it).

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311408&group_id=100114



More information about the Bash-completion-devel mailing list