[Bash-completion-devel] bash3 versus bash4 policy

Freddy Vulto fvulto at gmail.com
Tue Aug 17 20:30:36 UTC 2010


On 100810 20:24, Ildar Mulyukov wrote:
> I'd like to know better about status of bash3. Will it be supported by  
> bash-completion ?

Bash-completion is currently supporting bash >= 3.2.  See also the README file:

  "Use the full power of bash >= 3.2. We no longer support earlier bash
  versions, so you may as well use all the features of that version of
  bash to optimise your code. However, be careful when using features
  added since bash 3.2, since not everyone will be able to use them. Be
  ESPECIALLY careful of using features exclusive to 4.x, as many people
  are still using 3.x.

  For example, extended globs often enable you to avoid the use of
  external programs, which are expensive to fork and execute, so do
  make full use of those:

  ?(pattern-list) - match zero or one occurrences of patterns
  *(pattern-list) - match zero or more occurrences of patterns
  +(pattern-list) - match one or more occurrences of patterns
  @(pattern-list) - match exactly one of the given patterns
  !(pattern-list) - match anything except one of the given patterns"


Greetings,

Freddy Vulto
http://fvue.nl



More information about the Bash-completion-devel mailing list